Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

In C, 1D array of int can be defined as follows and both are correct.int array1D[4] = {1,2,3,4};int array1D[] = {1,2,3,4};But given the following definitions (along-with initialization) of 2D arraysint array2D[2][4] = {1,2,3,4,5,6,7,8}; /* (i) */int array2D[][4] = {1,2,3,4,5,6,7,8}; /* (ii) */int array2D[2][] = {1,2,3,4,5,6,7,8}; /* (iii) */int array2D[][] = {1,2,3,4,5,6,7,8}; /* (iv) */Pick the correct statements.(A) Only (i) is correct.(B) Only (i) and (ii) are correct.(C) Only (i), (ii) and (iii) are correct.(D) All (i), (ii), (iii) and (iv) are correct.

Answer»