Computer Science, asked by chaitra7220, 9 months ago

Index variable for the element at the first row and first column in array

Answers

Answered by brainhackergirl13
25

Explanation:

. 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'}};

Answered by surendrapolu
0

Answer:

j

Explanation:

jowveceamnr co newek in in vwow

Similar questions