what are value types and reference types? where they are stored?
Answer Posted / chiyan
value types holds the data directly ,no default value for
value type ex-->predefined datatypes
-->structures
-->enumarator
valuetypes will be stored in stack memory.
refe types does not holds the value directly,ref type holds
the default value ex-->arrays
-->classes
-->objects
ref types will be stored in heap memory.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
Are c# generics the same as c++ templates?
How can you use abstract class and interface?
Explain the serialization in .net
Is string a primitive data type in c#?
What is difference between event and delegate in c#?
Is c# slower than java?
How the versioning applies to Assemblies or can you explain version numbers?
Describe how a .net application is compiled and executed
Is int a struct in c#?
Why abstract class is not instantiated in c#?
What is type safe code?
What is an icollection in c#?
What is the difference between interface and abstract class in c#?
What is Named parameter in C#?
What is the use of parse in c#?