Current Affairs 2021 PDF

To crack any competitive exam like SSC, Railways, Insurance, UPSC, CLAT, Banking, State PSC Exams and other exams it is very important to answer all current affairs questions correctly. Gkseries Updates Current Affairs and Q&A packages in compiled and sorted topic wise to ensure easy accessibility of the information.

Buy Now

Question

What is the output of the following code?

	main()
	{
		static int num=8;
		printf("%d",num=num-2);
		if(num!=0)
		main();
	}
          
A 8 6 4 2
B Infinite output
C 6 4 2 0
D invalid because main function cannot call itself
Answer & Explanation
Option: [C]

mcq on c programming storage classes 04

Month-wise Current Affairs 2021

Category-wise Current Affairs

Jobs by Qualification

Free Mock Test