Which Statement Is Correct About Following C Codep Pre #223
Which statement is correct about following C# code?</p> <pre><code class="language-csharp">int[, ]a={{5, 4, 3},{9, 2, 6}};</code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs108 CSharp. It can also be found in gs gs108 Arrays and Strings - Array and Initialization - Quiz No.1.
Which statement is correct about following C# code?
int[, ]a={{5, 4, 3},{9, 2, 6}};
'a' represents 1-D array of 5 integers
a.GetUpperBound(0) gives 9
'a' represents rectangular array of 2 columns and 3 arrays
a.GetUpperBound(0) gives 2