Sports GK Questions and Answers 2024 (Latest Updated)

Awards & Honours GK Questions 2024 (Latest Updated)

Question

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]

mcq on c programming structures 03

Advertisement
Article and Schedule Quiz Start Test!
DOWNLOAD CURRENT AFFAIRS PDF FROM APP

Random GK Questions

Assam Direct Recruitment Test Series

Computer Science Topics