What is value type and reference type?

Answer Posted / kishore

Value types are the variables that directly contain the
vaiue and are stored in stack memry.
Example: int, char, float...

Reference types does not contain the value directly but has
the address of the value i.e reference address..
Reference types are stored in Heap memory.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does public mean in c#?

511


Why we use anonymous methods in c#?

482


Is Facebook a desktop application?

462


What is interpolation in programming?

481


Why singleton is sealed?

473






What I can do with c#?

493


What is a type c#?

491


Can we change static variable value in c#?

482


Explain attributes in c#?

475


What are the three types of predicates?

447


What is the purpose of static?

492


Why do we need abstract class?

466


While debugging a C# application can you change the value of a variable?

529


Why do we use abstraction in c#?

466


What is difference between static and readonly in c#?

440