Is array reference type / value type ?

Answers were Sorted based on User's Feedback



Is array reference type / value type ?..

Answer / narayansahu

array in .net is of reference type.It implements various
interfaces.also the array you create is automatically
derived from system.array class

Is This Answer Correct ?    86 Yes 8 No

Is array reference type / value type ?..

Answer / shanta

Yes array is reference type because it uses address

Is This Answer Correct ?    37 Yes 2 No

Is array reference type / value type ?..

Answer / sajan

All array types are implicitly derived from System.Array,
which itself is derived from System.Object. This means that
all arrays are always reference types which are allocated on
the managed heap, and your app's variable contains a
reference to the array and not the array itself.

Is This Answer Correct ?    29 Yes 0 No

Is array reference type / value type ?..

Answer / zohaib brohi

option 1: int arrayone[6];

option 2 : int[] arraytwo = new int[6];

my question is are both options of arrays are refrence type or not? or which option is of which type ?

Is This Answer Correct ?    10 Yes 3 No

Is array reference type / value type ?..

Answer / albarhami

Array is a reference type because its getting stored in a
managed memory i.e a heap

Is This Answer Correct ?    4 Yes 0 No

Is array reference type / value type ?..

Answer / susanta

yes, array is a value type.

Is This Answer Correct ?    10 Yes 93 No

Post New Answer

More C Sharp Interview Questions

What is typeof undefined?

0 Answers  


What are different types of Delegates in C#?

0 Answers   PUCIT,


What is multicast delegate in c# ?

0 Answers  


what r arraylist? what the use of Hashtables?

4 Answers  


Why main is static in c#?

0 Answers  


Hoe can i connect the table into the c# application?

2 Answers  


What is raise event and what is its use?

1 Answers   Wipro,


Explain Constructor and destructor?

0 Answers  


I have a class declared as below public class a { public void add() {} } What is the diference between a a1 =new a; and simply a a1;

3 Answers  


What are STA And MTA in threading?

4 Answers   Kanbay,


why c# is pronounced as C-sharp instead of pronouncing it as C-hash? is there any technical reason behind it?

3 Answers  


If I have more than one version of one assemblies, then how'll I use old version (how/where to specify version number?)in my application?

0 Answers  


Categories