what are value types and reference types? where they are stored?
Answer Posted / ctharam
Data Type are 2 Kinds. they are 1) Value Data Type 2) Reference Data Type.
1) Value Data Types are stored in Stack Memory Location( bool,byte,char,decimal,double,enum,float,int,long,struct,short and uint)
2) Reference Data Type are stored in Heap Memory Location(Class,Object,Array,Interface,Delegate and Dynamic).
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
explain the nature of the assembly work?
What are the different types of assembly?
When do you generally use a class over a struct?
Can a struct have a default constructor (a constructor without parameters) or a destructor in c#?
Which is faster array or arraylist in c#?
Is c# used for frontend or backend?
Can hashtable have duplicate keys?
What is a template class?
From which base class do all Web Forms inherit from?
What is executereader in c#?
Can you instantiate a struct without using a new operator in c#?
Can abstract class have constructor in c#?
What is sqladapter c#?
How can you read 3rd line from a text file?
Does hashset allow duplicates c#?