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 multiple interface in c#?
the c# keyword .int. Maps to which .net type?
How we can create an array with non-default values?
What are async and await?
What is string in c# net?
What is an indexer in c#?
What are the Types of configuration files and their differences
What is difference between destructor and finalize?
What is default parameter in c#?
What is difference between comparable and comparator?
What is the Signification of the "new " keyword in C#? example
What is expression tree with example?
Is c# used for frontend or backend?
Explain about CTS?
What is console readkey ()?