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?

Answers were Sorted based on User's Feedback



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

Answer / lokesh

Invalid Use of NULL

Is This Answer Correct ?    4 Yes 0 No

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

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

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

Answer / bhanu reddy

when u assign a null value to int varible

like
int i=null;

we will get error message :
Cannot convert null to 'int' because it is a non-nullable
value type

Is This Answer Correct ?    1 Yes 1 No

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

Answer / manikandan

when we not giving any integer variable. that only it will
be coming null

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More Visual Basic Interview Questions

How do I use GetPrivateProfileString to read from INI files?

0 Answers  


How do I set the Windows wallpaper at runtime?

0 Answers  


what are Instancing for classes provided by ActiveX component like prive, publicnotcreatable,SingleUse, GlobalSinleUse,MultiUse.

1 Answers   HCL,


State about the different types of visual basic data?

0 Answers  


Which property of textbox cannot be changed at runtime. What is the max size of textbox?

0 Answers  


Using which type we can access file line by line?

1 Answers  


How would you attach pictures in Treeview Control?

1 Answers   HCL,


What is the use of Hyperlink control for DHTML applications?

0 Answers  


What is DAO?

2 Answers  


how can i connect the samble database that comes with vb-6 (biblio.mdb) to a datagrid using code? ie what code i have to put in load event

1 Answers  


Different types of Passing Value?

1 Answers  


Binary Access-method isused to access file in which manner?

0 Answers  


Categories