An array is a: option1 : non of them, option2: reference type,option3: value type | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

An array is a: option1 : non of them, option2: reference type,option3: value type

solo learn answers : reference type how ??

30th Mar 2022, 3:41 AM
PRATIK
PRATIK - avatar
2 Answers
+ 1
An array is a collection of similar type variables which are referred to by a common name. In C#, arrays are the reference types so it can be passed as arguments to the method. A method can modify the value of the elements of the array. Both single-dimensional and multidimensional arrays can be passed as an argument to the methods.
30th Mar 2022, 4:06 AM
hossein B
hossein B - avatar
+ 1
In simple terms, reference types are instance of classes, meaning they have methods, properties etc. Primitive types are plain values.
30th Mar 2022, 6:00 AM
Ipang