Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Which statement is correct about following C# code?
int[, ]a={{5, 4, 3},{9, 2, 6}};

Which statement is correct about following C# code?
int[, ]a={{5, 4, 3},{9, 2, 6}};
a) a’ represents 1-D array of 5 integers
b) a.GetUpperBound(0) gives 9
c) ’a’ represents rectangular array of 2 columns and 3 arrays
d) a.GetUpperBound(0) gives 2

Answer: c
Explanation: ’a’ represents rectangular array of 2 columns and 3 arrays

Join The Discussion