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

What is DDE?

2265


How would you create Visual basic Document file?

2140


advantage and disadvantage in visual-basic and ms-access please tell me or send my mail-id

3189


what are the different Types of Recordsets.

2236


What is Pseudocode?

1516


how a multiple routing works ?

2963


What is ado data control in vb?

1064


How would you attach pictures in Treeview Control?

2031


How would you create properties in ActiveX Control?

1935


How would you convert a form into document?

2122


What are the important components of OLEDB?

2336


How can you Navigate from the DHTML application to another DHTML application? .

2231


Can a VB application be an OLE server?

1457


What do you know about chaining views.

1140


___,___ and __ are difference between image and picture controls.

1604