Online GK Series

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

Connect with Universities & Study Abroad Experts Instantly Connect Now


What is the effect of the following code?

		int a[4]={1,5};
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

Your Valuable Comments Please...

Useful Computer Science EBooks