What is the Difference between value and reference type?

Answer Posted / rahul e. mankumare

Value Types:-
value types are struct type and enumeration.
value type have some types which are given below
1>numeric type
2>boolean tyoe
3>character type
value type contain some integral types means signed
integers and unsigned integer. floating-point,decimal types
are also comes under value type

Reference Types:-
it is user defined type. It contains classes,
interfaces, delegates, arrays also object and strings types.

Is This Answer Correct ?    5 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the different ways a method can be overloaded?

629


Write a program in C# for checking a given number is PRIME or not.

829


My switch statement works differently! Why?

664


Why do we overload constructors?

673


What is enum in c#?

688


Define a class and an object?

710


What is a must for multitasking

725


What is appdomain in c#?

656


What is the difference between protected and internal in c#?

641


What is default parameter in c#?

697


Write down the c# syntax to catch an exception

689


What is uint c#?

644


Suppose you have already existing application with Visual Studio 6 (VB 6, InterDev 6) and this application utilizes Windows 2000 COM+ transaction services. With this example how can you approach migrating this application to .NET?

677


What is difference between class and abstract class in c#?

630


What is boxing and unboxing in c#?

622