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

Which property of menu cannot be set at run time?

1 Answers  


what are the Control Categories?

1 Answers  


What are the types of Instancing property that can be set for a Class in a ActiveX DLL and ActiveX EXE?

1 Answers  


How do I get a bitmap picture in a field in an Access database?

0 Answers  


What is hyperlink?

0 Answers  






how to use telugu language in vb6? any unicode data is available for telugu or not?yes means how to use? my desired output is telugu only? i am doing project like(telugu calendar),my output should be print in telugu only? pls send me the solution with code?

0 Answers  


How would you attach an ActiveX control in Your Application?

1 Answers  


To connect the Data Control with Back end What are all the properties to be set?

1 Answers  


what are the Parts of ODBC?

0 Answers  


what is the Difference between DDE and OLE?

1 Answers  


How to get Cursor position using API?

2 Answers  


How many types of ActiveX Components are there in Visual Basic and what are they?

2 Answers  


Categories