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

Code:
int[] x= {10, 20, 30};
  • (A) 'x' is a reference to the array created on stack
  • (B) 'x' is a reference to an object created on stack
  • (C) 'x' is a reference to an object of a 'System.Array' class
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (C) 'x' is a reference to an object of a 'System.Array' class

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
249
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
87%
Success Rate