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
Suppose you have already existing application with Visual Studio 6 (VB 6, InterDev 6) and this application utilizes Windows 2000 COM+ transaction services. With this example how can you approach migrating this application to .NET?
Does c# support try-catch-finally blocks?
What is ControlBox Propertie
How can we sort the elements of the array in descending order?
Why are strings immutable in c#?
What sort algorithm does c# use?
What is lastindexof c#?
What is meant by unicode characters?
Can hashtable have duplicate keys in c#?
Which framework is best for desktop application?
What is the extension of c# file?
How do I create a single-file assembly?
How do I edit a dll file?
What is system console writeline in c#?
What is value c#?