What is value type and reference type?

Answer Posted / usman

In simple words value types are those datatypes that store
there values on stack memory and values are settle down at
compile time example are "ENUM" and reference type are
those datatype that store there values in heap memory and
settle down while run time i.e dynamic types examples are
strings,class type etc

Cheers

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a c sharp?

641


What is interpolation in programming?

672


How Reflection is used and what it's significance ?

703


Does c# support multilevel inheritance?

642


Explain the difference between arraylist and array and in c#?

686


Explain the difference between proc. Sent by val and by sub?

675


What is meant by collections in c#?

616


Explain how do I convert a string to an int in c#?

694


What is the property of class?

768


What does exclamation mark mean in access query?

754


Why do we use class in c#?

682


What is a custom attribute?

647


Is Multiple-inheritance supported by c#?

741


Explain the Abstract class in c#.net

737


What is the difference between c and c sharp?

704