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 segment?

	void fn()
	{
		static int i=10;
		printf("%d",++i);
	}
	main()
	{
		fn();
		fn();
	}
          
A 10 10
B 11 11
C 11 12
D 12 12
Answer & Explanation
Option: [C]

mcq on c programming storage classes 02

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

Random GK Questions

Assam Direct Recruitment Test Series

Computer Science Topics