C# Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 11)
11.
Which of the following statements is correct about the C#.NET code snippet given below?
    int[] intMyArr = {11, 3, 5, 9, 4}; 
intMyArr is a reference to an object of System.Array Class.
intMyArr is a reference to an object of a class that the compiler derives from System.Array Class.
intMyArr is a reference to an array of integers.
intMyArr is a reference to an object created on the stack.
intMyArr is a reference to the array created on the stack.
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
5 comments Page 1 of 1.

Dipali said:   9 years ago
Without system. Array class I can write int[] intMyArry = new int{11, 3, 5, 9, 4};

At1087 said:   10 years ago
B is correct but also C is correct.

David said:   1 decade ago
@Rohi.

Only the system and compilers can derive explicitly from the Array class.

Rohi said:   1 decade ago
Can anybody please explain?

Woohoo said:   1 decade ago
Can I say intMyArr is a reference to an object of int class?

Post your comments here:

Your comments will be displayed after verification.