An Array is a Ref Type? what about the array elements which
are value type(int,Float...etc)?
Answer Posted / anand
address of value type elements (variables) were stored in
the array name, eg: For int value type you wil declare as:-
int[] arrayname=new int[];
here arrayname contains the address of the elements stored
in it.
int[] arrayname=new int[] {5,4,3,2,1};
arrayname denotes to the address of 5.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is the difference between abstract and virtual?
What is serialization in c#?
Is it possible to execute multiple catch block for a single try statement?
How can you reference current thread of the method ?
Name some string escape sequences in c#.
What is the difference between static and private constructor?
Explain the feature of c# language?
What is strongly typed view?
What is the use of private constructor in c#?
When was .net linq added?
Explain how is the dll hell problem solved in .net?
Explain the use of Mutex in C#?
What is asenumerable in c#?
Are string objects mutable or immutable?
How more than one version of an assembly can keep in same place?