What is difference between value and reference types?

Answer Posted / surya

Value Type holds the data within this own memory allocation.

where as Reference Type contains a pointer to another
memory location that holds the data.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a static class in c#?

588


Can a struct have a default constructor (a constructor without parameters) or a destructor in c#?

615


What is c# most used for?

647


Should I make my destructor virtual?

671


Are c# references the same as c++ references?

633






What is a framework in c#?

567


What is the use of flag in c#?

573


Can we overload indexer in c#?

563


i want o/p 011242110 in c# code.

1731


Why c# is called type safe language?

537


What is form feed in c#?

647


What is parameter c#?

620


What is msil, and why should developers need an appreciation of it if at all?

674


What is the default value of string in c#?

644


What is the main purpose of delegates in c#?

615