Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Which statement is correct about following c#.NET code?
int[] a= {11, 3, 5, 9, 6};

Which statement is correct about following c#.NET code?
int[] a= {11, 3, 5, 9, 6};
a) a’ is a reference to the array created on stack
b) ‘a’ is a reference to an object created on stack
c) ‘a’ is a reference to an object of a class that compiler drives from ‘System.Array’ class
d) None of the mentioned

Answer: c
Explanation: A perfect way of defining single array in C# which is derived automatically from class ‘System.Array’.

Join The Discussion