[ create a new paste ] login | about

Link: http://codepad.org/Ie8ivQnD    [ raw code | output | fork ]

C, pasted on Jul 5:
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;
	}


Output:
1
2
Line 6: error: field 'next' has incomplete type
t.c:12: confused by earlier errors, bailing out


Create a new paste based on this one


Comments: