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

current affairs 2021 pdf plan

Current Affairs MCQs

State-wise Current Affairs

Month-wise Current Affairs 2021

Category-wise Current Affairs

Jobs by Qualification

Free Mock Test