Home »
MCQs »
C# MCQs
Which statement is correct about the following C# statement?
64. Which statement is correct about the following C# statement?
int[] x= {10, 20, 30};
- 'x' is a reference to the array created on stack
- 'x' is a reference to an object created on stack
- 'x' is a reference to an object of a 'System.Array' class
- 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.