what are value types and reference types? where they are stored?
Answer Posted / pankaj
value types------int,float,char
reference type----Array,class
value types stored in stack while reference type stored in heap.
in reference type address f variables are stored
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Why can’t struct be used instead of class for storing entity?
Explain about accessibility modifier 'protected internal'?
Can struct be static in c#?
What is extension method in c sharp?
Define Abstract Class in C#
how to prevent a class from being inherited in c#.net?
What is Implementation inheritance
What is a console?
Why do we use namespace in c#?
What does console readkey do in c#?
Which is more efficient for loop or while loop?
What is difference between method and function in c#?
What is cts, clr?
What is event delegate in c#?
Why objects are stored in heap in c#?