Untitled

                Never    
C/C++
       
#include <stdio.h>

struct student {
  const char *name;
  const char *address;
} students[] = {
    { "Abdul","UK" },
    { "Bonny","USA" },
    { "Chyntya","USA" },
    { NULL }
};

int prStruct(struct student *stu);

int main(void){
	struct student *std;
	std=students;
	prStruct(std);
	return 0;
}
	
int prStruct(struct student *stu){
	for (stu=stu;stu->name;stu++){
		fprintf(stdout,"%s\n", stu->name);
	}
	return 0;
}

Raw Text