what are value types and reference types? where they are stored?
Answer Posted / poornima
Value Types:
All numeric data types
Boolean, Char, and Date
All structures, even if their members are reference types
Enumerations, since their underlying type is always SByte,
Short, Integer, Long, Byte, UShort, UInteger, or ULong
Reference Types:
String
All arrays, even if their elements are value types
Class types, such as Form
Delegates
1..In value type data stored on stack memory.
2..In reference type data stored on heap memory.
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
How is method overriding different from overloading?
Difference between Value type & reference types ? and give the example in .Net?
Explain copy constructor?
Which technology is best for desktop application?
What are c# collections?
Write a program to create a user control with name and surname as data members and login as method and also the code to call it. (Hint use event delegates) Practical Example of Passing an Events to delegates
Differentiate between response.expires and response.expiresabsolute?
What do you know about WM_CHAR message?
What is the use of base keyword? Tell me a practical example for base keyword’s usage?
What is the difference between static class and sealed class in c#?
What is global namespace in c#?
What are the differences between a class and a struct?
What is dataset and dataadapter in c#?
Why attributes are used in c#?
What is dynamic object in c#?