Sports GK Questions and Answers 2024 (Latest Updated)

Awards & Honours GK Questions 2024 (Latest Updated)

Question

What will be the output of the following program?

	main()
	{
		struct emp
		{
			char name[20];
			int age;
			float sal;
		};
		struct emp e={"Tiger"};
		printf("\n%d%f"),e.age, e.sal;
	}
	
A 0 0.000000
B Garbage values
C Error
D None of the above
Answer & Explanation
Option: [A]

mcq on c programming structures 04

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

Random GK Questions

Assam Direct Recruitment Test Series

Computer Science Topics