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 can you check whether a record is valid record or Invalid record using ADO control or Object?
How to customize workgroup message?
What are the types of line styles available in Treeview Control?
Difference between Tabletype and Snapshot?
What is the-use of property page Wizard in ActiveX Control?
Types of LockEdits in DAO? 51 .Types of Recordsets.
Can any one please suggest which institute is providing Advance Excel & VBA Macros in Excel training in Hyderabad.
What are 3 main differences between flexgrid control and dbgrid control?
In which areas the Error occurs?
What is the use of Hyperlink control for DHTML applications?
what are the Types of LockEdits in RDO?
What are the types of API Types.
What language does visual basic use?
Is there any way to pass a variable to a form apart from using global variables?
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?