Which of the following correctly declares and initializes a two-dimensional rectangular array of integers?

a) int[,] sum = new int[3, 4];
b) int[] sum = new int[2, 4];
c) int sum[] = new int[2, 2];
d) None of the above.


a) int[,] sum = new int[3, 4];

Computer Science & Information Technology

You might also like to view...

Answer the following statements true (T) or false (F)

1) Multiple reference variables can refer to the same object. 2) The new operator is used to access an object's methods. 3) A variable that is declared as a primitive type stores the actual value of the associated data. A variable that is declared as an object type stores a pointer to the associated object. 4) The value of a primitive datatype variable may be assigned to an object of the corresponding wrapper class, and vice-versa. 5) String objects can be changed after instantiation.

Computer Science & Information Technology

New building blocks must be named when created

Indicate whether the statement is true or false

Computer Science & Information Technology

If the width of the screen is four-thirds that of the height, it is the _____ ratio.

A. standard B. widescreen C. aspect D. ?full screen

Computer Science & Information Technology

The original CDMA was considered a 2G technology

Answer the following statement true (T) or false (F)

Computer Science & Information Technology