The statement int a[5][5] = {{1}}; (A) sets all elements to 1, (B) sets a[0]0] to 1 and the
remaining elements to zeroes, (B) sets only a[0][0] to 1, (D) fails on compilation.
For initialization of a 2D array, the inner braces are (A) mandatory for partial initialization,
(B) optional for partial initialization, (C) optional, (D) mandatory.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here