UNI 2
Which of the following is a two-dimensional array?
O array anarray20;
O int anarray20;
O int array 20, 2

UNI 2
Which of the following is a two-dimensional array?
O array anarray20;
O int anarray20;
O int array 20, 20;
O char array 20;

About the author
Parker

2 thoughts on “UNI 2<br />Which of the following is a two-dimensional array?<br />O array anarray20;<br />O int anarray20;<br />O int array 20, 2”

  1. Correct question:

    Which of the following is a two-dimensional array?

    A. array anarray[20][20];

    B. int anarray[20][20];

    C. int array[20, 20];

    D. char array[20];

    Answer:

    Correct option is (B) int anarray[20][20];

    Syntax:

    datatype array_name[M][N];

    Option A cannot be the answer because array is not a data type.

    Option B can be the answer because it is according to the syntax.

    Option C cannot be the answer because it is not according to the syntax.

    Option D is a one dimensional array.

    So, the correct option is (B) int anarray[20][20];

    Reply

Leave a Comment