Make a structure and give it three members like this,
struct student{
int rollno;
char name[10];
int arr[];
}stud1, stud2;
now give 4 records of marks to stud1, and 5 records of marks to stud2. I told the interviewer that we have to give array some size otherwise it is not going to be assigned any space , or it would give compiler error. He said according to new standards of C , it is possible. Finally i couldn't understand how to do it.Do anyone have suggestions ? I tried to do a realloc but i was not sure myself if it would work.