Solved

There Are Several Ways to Do a Compile-Time Initialization of Two-Dimensional

Question 23

Multiple Choice

There are several ways to do a compile-time initialization of two-dimensional arrays. All of the following are valid ways EXCEPT ____.


A) int [, ] anArray = {{100, 100, 100} {100, 100, 100}};
B) int [ , ] anArray = new int [ , ] {{100, 100, 100} {100, 100, 100}};
C) int [ ,  ] anArray = new int [2, 3 ] {{100, 100, 100} {100, 100, 100}};
D) int [ ] anArray = new int [10 ] {{100, 100, 100} {100, 100, 100}};

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions