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

Explain the usage of Web Browser Control?

0 Answers  


How do you avoid the "Invalid use of null" error when reading null values from a database?

0 Answers  


How would you attach an ActiveX control in Your Application?

1 Answers  


How many ways you can access file using VB?

0 Answers  


Explain about the basic features of Visual basic?

0 Answers  






by writing MACRO CODE,i want to retrive data from one spead sheet to another UI (workbook). control will search cell by cell for each row and load the data in another workbook(UI). ex: custdetails custname lastname locaton mobile pincode custdetails raj tony hyd 555555 521245 servcreqrd srvce# srvcename location srvcepincode servcreqrd 754 drilling hyd 521784 for the above example in the another workbook retrive data like this custname Raj srvce# 754 srvcepincode 521784. while retrieving data control will search cell by cell for each row.

0 Answers   CGI, Infotech,


what is the meaning of cts company logo?..

1 Answers   CTS,


How would you attach pictures in Treeview Control?

1 Answers   HCL,


Are there any examples of commercial applications built using Visual Basic?

0 Answers  


What kind of components can you use as DCOM servers?

1 Answers   Hudson,


What does the NewIndex property return?

2 Answers  


how to use unicode data in vb6 regarding to telugu language, my output is in only telugu language

0 Answers  


Categories