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
Explain how to use an extender provider in the project.
Is c# good for games?
Why do canadians say zed?
What is getenumerator?
What is a partial class in c#?
What is a long in c#?
What is option parameter in C#?
What is a string c#?
What is uint c#?
What are the benefits of using generics in c#?
Please explain value types and reference types used in c#?
How you will create satellite assemblies?
Explain the difference between const and static read-only?
What does out mean c#?
What is the difference between an implicit conversion and an explicit conversion?