Which of the following statements will declare a two-dimensional array called scores to be of the int data type and contain 2 columns and 3 rows, while also initializing all elements to 0?

A. int scores [1][2] = {0};
B. int scores [2][3] = {0};
C. int scores[3][2] = {0};
D. int scores[0] = {2, 3};

Answer: C

Computer Science & Information Technology

You might also like to view...

An enterprise storage system is often used by families with home networks and involves the efficient and safe use of data across computers

Indicate whether the statement is true or false

Computer Science & Information Technology

A file that stores text characters, but not formatting, tables, or graphics is called a(n) ________

A) XML file B) PDF file C) Word document D) text file

Computer Science & Information Technology