Value Type and Reference Type Data type in C#?



Value Type and Reference Type Data type in C#?..

Answer / Chandra Prakash Chaudhary

Value Types are Structs (including Enums) and they are stored on the stack memory. They are copied by value. Reference Types are Classes, Interfaces, Arrays, Strings, and Delegates. They are stored on the heap memory and they are copied by reference.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Why is it efficient to use System.string under System.Text.StringBuilder ?

1 Answers   Siebel,


Define delegate?

1 Answers  


Can a struct inherit from an interface in c#?

1 Answers  


Can a struct inherit from another struct or class in c#?

1 Answers  


What is the compiler of c#?

1 Answers  


How to assign default value to nullable types? Did nested nullable types are allowed

2 Answers   TCS,


What is the default value of string in c#?

1 Answers  


What is the use of expression tree in c#?

1 Answers  


Why is .net so popular?

1 Answers  


What is appdomain in c#?

1 Answers  


What is thread in c#?

1 Answers  


what does static void Main(string[] args) in C# mean????????

5 Answers   ssinformatics,


Categories