What is difference between value and reference types ?

Answer Posted / gowthami

value types are stored in the memory.
reference types are stored in the heap.
all implicit datatypes,enums,structs are value types.
delegates,objects are reference types..
pointer to the heap where the data is located is maintained
in the stack
when we delete a reference type pointer to the heap is
deleted from the stack

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is web forms in c#?

490


what are pointer types in c#

543


What is the difference between string keyword and system.string class?

506


What is an interface class? Give one example of it

472


What are the two kinds of properties in c#.

520






What is the symbol used for in c#?

484


Can we make a class private in c#?

490


What is property in c#?

530


What is different about switch statements in c#?

483


What is the advantage of generics in c#?

496


How do I create a multilanguage, single-file assembly?

490


In which format you can pass the value in the sleep function?

533


Is static thread safe?

479


What is asynchronous one-way calls?

514


What does console readline do in c#?

472