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

write code for inserting and updating recoards in sql server database using connected architecture & records shoulds displayed in grid view ( use c# )

2026


What are variables in c#?

600


what is the difference between .dll and .exe

617


Structs are largely redundant in c++. Why does c# have them?

868


What is string [] args in c#?

617






What is eager and lazy loading in c#?

539


How does array sort work?

581


What is the use of console?

561


Why is .net so popular?

604


Name some properties of array.

580


What is the difference between System.console.WriteLine() and System.console.Write() function?example?

689


What is array formula?

551


Why to use “finally” block in c#?

624


Is c# front end or back end?

581


What is use of singleton class in c#?

571