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 foreach loop in c#?
What is the purpose of static?
Is c# difficult to learn?
How big is a 64 bit integer?
Are structs faster than classes?
What is msil, and why should developers need an appreciation of it if at all?
What is ienumerable and iqueryable?
Explain inheritance in c#?
Are c# references the same as c++ references?
Explain About .Net remoting
How to do and Apply Themes to Datagrid,Lable,Textbox,etc., in C#.NET 2005 Windows Application? (like who we will do themes in ASP.NET using .CSS and .SKIN files). Urgent!!
Why do I get an error (cs1006) when trying to declare a method without specifying a return type?
Is static class thread safe in c#?
Explain 'structure padding'?
Does a class need a constructor c#?