what are value types and reference types? where they are stored?

Answer Posted / chiyan

value types holds the data directly ,no default value for
value type ex-->predefined datatypes
-->structures
-->enumarator
valuetypes will be stored in stack memory.

refe types does not holds the value directly,ref type holds
the default value ex-->arrays
-->classes
-->objects

ref types will be stored in heap memory.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List down the commonly used types of exceptions in .net

510


Explain the steps to create satellite assembly?

502


How many types of constructors are there in c#?

483


What is the use of delegate?

539


Difference between type constructor and instance constructor? What is static constructor, when it will be fired? And what is its use?

557






What are access modifiers in c#?

560


Which of the following API is used to hide a window?

548


What are extender provider components? Explain how to use an extender provider in the project.

513


Can we inherit class that contains only one private constructor?

534


How can I use .NET components from COM programs?

507


how to Create a datagridview control with check box column with 8rows in it, the maximum number of check boxes checked should be 3, when user checks the 4th corresponding message should be displayed and check box should be checked. User can uncheck the checked boxes Note: read-only property should not be used

2405


Explain About stateless and state full web service

580


Define c# and list the features.

546


What do you mean by directing?

499


Is c# and .net same?

504