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

Are multiple data types stored in System.Array?

644


What is default constructor in c#?

492


Explain the difference between const and static read-only?

502


What is the use of tryparse in c#?

461


What is single dimensional array in c#?

490






Can you create an instance of a static class?

548


Why do we need nullable types in c#?

680


What is a Managed Code??

532


What is the default value of singleordefault?

488


what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?

1438


Explain About ADO and its objects

569


What is inline function in c#?

505


What is the difference between double and decimal in c#?

456


When is a class declared as a class abstract?

580


If you want to write your own dot net language, what steps you will u take care?

553