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...

What is the error message that you would get if you try to
assign "Null" to an integer variable?

Answer Posted / govind. konduri

hai...

when we will try to assign a null value to integer as
shown below.

int a=null;//error
console.WriteLine(a);

when compile the above code it will show the error message.

"cannot convert null to int because it is a non-nullable
value type"


so...if we want to assign 'null' to 'int' .we have to write
like this..
int? a=null;//valid

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to Manipulate data through flexgrid? Explain.

1993


How would you map properties to controls by using ActiveX Control Interface Wizard?

2248


What are the types of Error? In which areas the Error occurs?

2102


Difference between ActiveX Control and Standard Control.

2631


How do I set the Windows wallpaper at runtime?

1590


Is it possible to change menu runtime using API? If yes Specify the function names?

2005


What are forms in visual basic?

1056


What is FireHouse Cursors?

2292


What is DAO?

2038


Which language is used in visual basic?

1034


how a multiple routing works ?

2904


Difference between Linked Object and Embedded Object?

2282


____ property of menu cannot be set at run time.

1734


What is ActiveX? Explain.

1919


How do I speed up control property access?

1484