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
What is a class in unity?
without modifying source code if we compile again, will it be generated MSIL again?
Explain polymorphism in c# with a simple example?
What is private constructor c#?
Why do canadians say zed?
Is inheritance possible in c sharp?
Is the following code legal?
What are the basics of c#?
What are the principles of delegation?
What is access modifier in c#?
What are abstract classes in c#?
How do you escape in c#?
Is c# used for frontend or backend?
What is system console writeline in c#?
What is the difference between properties and indexer in c#?