Question: 1. What is the index variable for the element at the first row and first column in array a? a[1][0] a[0][0] a[1][1] a[0][1] 2. Which
1. What is the index variable for the element at the first row and first column in array a?
| a[1][0] |
| a[0][0] |
| a[1][1] |
| a[0][1] |
2. Which of the following statements are correct?
| int data[2][2][2] = {{{1, 2}, {3, 4}}, {{5, 6}, {7, 8}}}; |
| int data[2][2][]; |
| int data[][2][2] = {{{1, 2}, {3, 4}}, {{5, 6}, {7, 8}}}; |
| int data[][][] = {{{1, 2}, {3, 4}}, {{5, 6}, {7, 8}}}; |
| int data[2][2][2]; |
3. Which of the following statements are correct?
| char charArray[][] = {'a', 'b'}; |
| char charArray[2][2] = {{'a', 'b'}, {'c', 'd'}}; |
| char charArray[][] = {{'a', 'b'}, {'c', 'd'}}; |
| char charArray[2][] = {{'a', 'b'}, {'c', 'd'}}; |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
