GkSeries.com

Q.

What will be the output of the following code?

	struct abc{int a; int b;} v[3], *p;
	main()
	{
		p=v;
		p->a=3;
		p->b=p->a;
		printf("\n%d\t%d", v[0].a, v[0].b);
	}
	
[A] 3 4
[B] 4 3
[C] Any garbage value
[D] 3 3
Answer & Explanation
Option: [D]

DOWNLOAD CURRENT AFFAIRS PDF FROM APP

Please share this page

Click Here to Read more questions

Teacher Eligibility Test