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
Is it possible to Manipulate data through flexgrid? Explain.
How would you map properties to controls by using ActiveX Control Interface Wizard?
What are the types of Error? In which areas the Error occurs?
Difference between ActiveX Control and Standard Control.
How do I set the Windows wallpaper at runtime?
Is it possible to change menu runtime using API? If yes Specify the function names?
What are forms in visual basic?
What is FireHouse Cursors?
What is DAO?
Which language is used in visual basic?
how a multiple routing works ?
Difference between Linked Object and Embedded Object?
____ property of menu cannot be set at run time.
What is ActiveX? Explain.
How do I speed up control property access?