GkSeries.com

Q.

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]

DOWNLOAD CURRENT AFFAIRS PDF FROM APP

Please share this page

Click Here to Read more questions

Teacher Eligibility Test