An Array is a Ref Type? what about the array elements which
are value type(int,Float...etc)?
Answer Posted / nishesh
Array is ref type bcoz it holds the address or refrence to the elements and whnever array is used it refers to that address
whereas int, float, double are value types bcoz they directly stores value.
another difference
whn we make changes in array it does not allocate any new memory to the array elements
but whn we make changes with value types they allocate new memory to the new result obtained
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Is c# pass by value?
How can I produce an assembly?
What are actions in c#?
Explain about Oops concept
What is dto c#?
How many types of constructors are available in c#?
Explain about finalize method?
What is the difference between system.string and system.text.stringbuilder classes?
What is marshalling and what are different kinds of marshalling?
What type of data type conversion happens when the compiler encounters the following code?
How do I open the console?
What are the advantages of using assemble language programming?
What is inner class in c#?
What is dataset and dataadapter in c#?
how to compare numbers and dispaly the largest ? *first thing I wanted to do is to input how many numbers to be compared *and then analyzed the largest then display it.