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 the difference between CONST and READONLY?
What is the benefit of interface in c#?
Can namespace contain the private class?
What do you mean by hashtable c#?
What is escape sequence in c#?
Can we overload indexer in c#?
What are the string functions in c#?
What is the namespcae generally given to the webpage of the .NET Framework ?
Define satellite Assembly?
What are the types of parameters in c#?
Can we override constructor in c#?
Is a c# interface the same as a c++ abstract class?
How do switch statements work?
What does a constructor do c#?
When was c# created?