Join our Telegram Channel

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

DOWNLOAD CURRENT AFFAIRS PDF FROM APP

Today's Top Current Affairs

Current Affairs MCQs

State-wise Current Affairs

General Knowledge

Month-wise Current Affairs 2023

Category-wise Current Affairs

Jobs by Qualification

Free Mock Test