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 a multiple routing works ?
What is vbs file?
____ is the difference between Listindex and Tab index.
what are the Differences between Recordset and Resultsets?
How to find size of the file. Which method or function is used to occomplish this?
What are the tools available for Debuggiu in VB?
What is meant by Establish Connection in RDO?
What is the use of ActiveX Documents?
How do I get my application on top?
Can you create a updatecascade, Deletecascade relation in Ms- Access? If no, give on eample.
Explain the usage of Web Browser Control?
To validate a range of values for a property whenever the property values changes,which type of property procedure you use?
Discuss the working with to-do lists.
To find the current recordposition in data control.
How to control the file?