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 orm in c#?

960


How do you mark a method obsolete?

1001


What Is The Smallest Unit Of Execution In .net?

929


What is instantiating a class in c#?

1018


Can list contain duplicates c#?

878


What is a Managed Code??

1018


Is array a list?

872


what is the difference between interface and multiple interface?

1065


What is inheritance in csharp?

1002


What is list collection in c#?

957


Can we declare class as protected?

1003


Why is xml called extensible?

870


What do you mean by a windows process in regards to memory allocation?

956


What is an interface class in c#?

1091


When should I use static in C#?

972