Online GK Series

This site is dedicated to the aspirants of competitive exams SSC, UPSC, Railways, Postal Assistants, Bank, GATE and NET

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]

mcq on c programming storage classes 02

Computer Science Books

Your Valuable Comments Please...

Please Like Us
Brand