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

Can you tell me the properties of the controls?

0 Answers   Satyam,


What is the-use of property page Wizard in ActiveX Control?

0 Answers  


What do you mean by ADO?

1 Answers  


which arguments will be used to run a executable program in shell function ?

1 Answers  


What is meant by Establish Connection in RDO?

0 Answers  






What is the difference between creating a object using New and CreateObject in Visual Basic?

1 Answers  


What is a datacontrol?

1 Answers  


what is the Difference between listbox and combo box?

2 Answers  


Difference between listbox and combo box.

12 Answers   HCL, Infosys,


reading lines from a file by searching a word(instr) and copying to other textfile,but its only copying only one line but there are some other lines match criteria but not copying to the files

2 Answers  


What is ADO? What are its objects ?

1 Answers  


Explain the usage of Web Browser Control?

0 Answers  


Categories