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 / narayana

Yes We can Assign
A nullable int can store null. Nullable types in the C#
language can be constructed by specifying the question mark
after a value type in a declarator statement. The nullable
int can be specified with the syntax "int?".

Example:
int a=b=10;
int? c= null;
c=a+b

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Wrapper class in dot net?

1008


What is signature c#?

864


What is wrong with the sample program below?

900


Is php easier than c#?

847


What is immutable in C#?

959


Explain About web methods and its various attributes

911


What is a dynamic assembly?

905


How to force my .net app to run as administrator on windows 7?

916


what is the difference between a struct and a class in c#?

1079


What is an interface class in c#?

1018


What is the keyword used to prevent a class from being inherited by another class?

1058


How more than one version of an assembly can keep in same place?

909


What .exe means?

849


Can we inherit two classes in c#?

896


Why are strings immutable in c#?

853