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

what is the Benefit of wrapping database calls into MTS transactions?

1 Answers  


How to find size of the file. Which method or function is used to occomplish this?

0 Answers  


how to get printout between two dates informations in datareport in vb6.0

1 Answers  


How many ways we can access file using VB?

0 Answers  


What are the important components of OLEDB?

0 Answers   Tricom,






what controls have you used in your project?

0 Answers   Satyam,


which property is used to lock a textbox to enter data?

4 Answers  


How many max. number of controls can place in one form (especially visual basic form)?

6 Answers   Satyam,


DHTML Is used for what?

0 Answers  


How do I implement an accelerator key for a text box?

0 Answers  


What is Internet Explorer and its uses?

0 Answers  


What is the difference between adodc and adodb in vb?

0 Answers  


Categories