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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!