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
I'm getting error message "Reserved Error [-nnnn] ("There is no message for this error")" from Jet Engine 2.0.Why?
How many tabs in a tabbed dialog do you consider appropriate?
How can you Add API functions to your Application?
How can I speed up my VB database application?
What is the use of Data Form Wizard?
How can you check whether a record is valid record or Invalid record using ADO control or Object?
How would you add column headers in listview control?
What is Parser Bug?
What is a thread pool and how are the threads within a thread pool managed?
What is the current version of Visual Basic for Windows?
How do I create controls dynamically (at run-time)?
DHTML Is used for what?
How do you change the system menu (on the Control-Menu Box)?
What is the use of debug Window?
How would you Create a Query Builder and Explain its uses ?