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
Which namespace is required to implement trace ?
What is generic and non generic collections in c#?
What is default access modifier for class in c#?
Can constructor be protected in c#?
What is delegates and events?
What is form feed and carriage return?
Can a dictionary have duplicate keys c#?
Explain how do you debug an asp.net web application?
What is difference between variable and property in c#?
What are the types of attributes in c#?
What is null character in string?
How do you read an Excel sheet in C#?
What are strong name assemblies?
What is form feed in c#?
There were a lot of questions asked, so I will list the topic (and add a what is "topic" and know pros/cons). Extreme programming, what is a transaction, various SDLC design approaches, what is a namespace, define a good test case, what is a stored proc, webservice? design patterns? linker? compiler? access modifiers? stack vs. queue? arrays vs. linked lists? sorting algorithms? recursion? OOP principles?