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


Please Help Members By Posting Answers For Below Questions

What are the steps to make an assembly to public?

705


What is the use of ienumerable?

631


What is the difference between CreateObject() and GetObject()?

727


What is transparent caching with aop ?

780


Can we store different data types in arraylist in c#?

658


What do you mean by string objects are immutable?

686


What is the difference between System.console.WriteLine() and System.console.Write() function?example?

794


what is the difference between interface and multiple interface?

732


What is difference between list and ilist in c#?

616


Define parsing?

666


what is partial assembly reference

704


Are structs faster than classes?

700


Can property be private in c#?

667


What is a custom attribute?

644


Are tuples mutable c#?

639