Discussion Forum

  1. Home
  2. »
  3. Languages
  4. »
  5. Which of the following statements...
Which of the following statements are correct about the C#.NET code snippet given below?

int[ , ] intMyArr = {{7, 1, 3}, {2, 9, 6}};
1. intMyArr represents rectangular array of 2 rows and 3 columns.
2. intMyArr.GetUpperBound(1) will yield 2.
3. intMyArr.Length will yield 24.
4. intMyArr represents 1-D array of 5 integers.
5. intMyArr.GetUpperBound(0) will yield 2.

1, 2

2, 3

2, 5

1, 4

Answer: A . 1, 2
0Shares
0 0

If you think the posted answer is wrong or Confused About the Answer? Ask for Details Here

Know Explanation? Add it Here
we’ll review your comment and contact you soon….

Leave a Reply

Your email address will not be published. Required fields are marked *

error: You are not allowed to do so.....
0Shares
0
Scroll to Top