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
what are the different Types of Recordsets.
Explain about arrays?
Why do I get "object not an array" when I try reference the fields of a global object variable which I have set to a table?
what are the Parts of ODBC?
Draw Sequence Modal of DAO? Explain.
How would you add elements in TreevieW Control?
What is the need of tabindex property is label control.
State about the different types of visual basic data?
What are the different procedures associated with the object?
What is OLEDB?
Where can I get good up-to-date information about VB?
Types of ActiveX Components in VB?
___ property used to add a menus at runtime.
How would you add column headers in listview control?
How do I call a DLL?