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 you zoom in visual basic?
How many File System Controls are there ? Explain.
___ is a property to resize a label control according to your caption.
What is constructors and distructors.
What is the use of debug Window?
___,_____ and ____ container objects.
Is the Variant type slower than using other variable types?
Is it possible to change menu runtime using API? If yes Specify the function names?
What is the default model of the form?
what is the Difference between Linked Object and Embedded Object?
How would you activate animation control?
what are the Differences between Recordset and Resultsets?
What is the Windows API?
How many objects resides in ADO ?
Why visual basic is used?