1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include<stdio.h> struct stud { char name[20]; int rollNo; struct stud next; }; int main() { struct stud student={"xyz"}; printf("rollNo = %d",student.rollNo); return 0; }
1 2
Line 6: error: field 'next' has incomplete type t.c:12: confused by earlier errors, bailing out