Solved

Which One of the Following Is the Correct Definition for Initializing

Question 102

Multiple Choice

Which one of the following is the correct definition for initializing data in a two-dimensional array of three rows and two columns?


A) int[][] arr =
{
{ 1, 1, 1 },
{ 2, 2, 2 },
};
B) int[][] arr =
{
{ 1, 1 },
{ 2, 2 },
{ 3, 3 }
};
C) int[][] arr =
{
{ 1, 1 }
{ 2, 2 }
{ 3, 3 }
};
D) int[][] arr =
{
{ 1, 1, 1 }
{ 2, 2, 2 }
{ 3, 3, 3 }
};

Correct Answer:

verifed

Verified

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

Related Questions