Which statement is correct about the following C# statement?

64. Which statement is correct about the following C# statement?

int[] x= {10, 20, 30};
  1. 'x' is a reference to the array created on stack
  2. 'x' is a reference to an object created on stack
  3. 'x' is a reference to an object of a 'System.Array' class
  4. None of the above

Answer: C) 'x' is a reference to an object of a 'System.Array' class

Explanation:

In the above given C# statement, the variable 'x' is a reference to an object of a 'System.Array' class.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.