Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

can we assign null value to value type in c#?

Answer Posted / yogesh

Cannot convert null to a value type.
So it is not possible to assign null to value type.

Value types include:
All numeric data types
Boolean, Char, and Date
All structures, even if their members are reference types
Enumerations, since their underlying type is always
Byte, Short, Integer, or Long

Reference types include:
String
All arrays, even if their elements are value types
Class types, such as Form
Delegates

Is This Answer Correct ?    20 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do we get an error while executing the “finally” block in c#?

996


What is serializable in c#?

961


What is the difference between decimal and integer?

1199


What are the types of class in c#?

1161


What is the difference between console application and windows application?

1069


Why to use lock statement in c#?

985


What is cosole application?

1173


Which program construct must return a value?

1118


What is type safe in c#?

935


What is the use of command builder?

1108


What is the difference between method overriding and method overloading?

1005


Define an array?

983


What is a verbatim string literal and why do we use it?

1007


What is Implicit conversion in C#?

1162


Explain the difference between private and shared assembly?

939