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 are the steps to make an assembly to public?
What is the use of ienumerable?
What is the difference between CreateObject() and GetObject()?
What is transparent caching with aop ?
Can we store different data types in arraylist in c#?
What do you mean by string objects are immutable?
What is the difference between System.console.WriteLine() and System.console.Write() function?example?
what is the difference between interface and multiple interface?
What is difference between list and ilist in c#?
Define parsing?
what is partial assembly reference
Are structs faster than classes?
Can property be private in c#?
What is a custom attribute?
Are tuples mutable c#?