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

How do you zoom in visual basic?

897


How many File System Controls are there ? Explain.

1976


___ is a property to resize a label control according to your caption.

1513


What is constructors and distructors.

2234


What is the use of debug Window?

1997


___,_____ and ____ container objects.

1562


Is the Variant type slower than using other variable types?

1493


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

1931


What is the default model of the form?

2079


what is the Difference between Linked Object and Embedded Object?

2215


How would you activate animation control?

2304


what are the Differences between Recordset and Resultsets?

2463


What is the Windows API?

1446


How many objects resides in ADO ?

1877


Why visual basic is used?

957