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
Explain anonymous type in c#?
Write a short note on interface?
What is the purpose of c#?
What language is c# similar to?
Is dictionary a collection?
How can I get the ascii code for a character in c#?
What is the keyword used to prevent a class from being inherited by another class?
What is winforms c#?
Does the system.exception class have any cool features?
What is the c# equivalent of c++ catch (…), which was a catch-all statement for any possible exception? Does c# support try-catch-finally blocks?
How main method is called in c#?
Is there regular expression (regex) support available to c# developers?
How do you concatenate in c#?
Are cao stateful in nature?
write a c# program add two matrix with input number ?