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 effect of the following code?

	main()
	{
		int a[4]={1,5};
		printf("%d",a[3]);
	}          
	
A 0
B Syntax error because of improper initialization
C 5
D Syntax error because of invalid index
Answer & Explanation
Option: [A]

Given that int a[4]={1,5}

So a[2], a[3] etc. are 0

Month-wise Current Affairs 2021

Category-wise Current Affairs

Jobs by Qualification

Free Mock Test