What is the error message that you would get if you try to
assign "Null" to an integer variable?
Answer Posted / 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 |
Post New Answer View All Answers
How do I make my applications screen-resolution independent?
Difference between ActiveX Exe and Dll.
___ argument can be used to make a menuitem into bold.
Explain about ADO control?
Why visual basic is used?
How do I make a text box not beep but do something else when I hit the Enter key?
How do I call a DLL?
Explain the differences between ActiveX Dll and ActiveX Exe?
What is the use of debug Window?
Which method is used to write context Into file?
OLE is used for _______
What is the use of Imagelist Controls ?
Draw Sequence Modal of RDO and Explain?
How do I speed up control property access?
When/Why should I use Option Explicit?