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 array c#?
Are arraylist faster or arrays?
What do you understand by an Implicit Variable?
Is as keyword in c#?
Why is aws serverless?
How do I run a cshtml file?
List down the reason behind the usage of c# language.
What is the default scope of a class in c#?
How does it work?
Why can't we use a static class instead of singleton?
What are the 2 broad classifications of fields in c#?
What does char mean in c#?
What is scaffolding in c#?
Explain publishers and subscribers in events.
What is the xml document structure?