What is the error message that you would get if you try to
assign "Null" to an integer variable?
Answers were Sorted based on User's Feedback
Answer / 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 |
when u assign a null value to int varible
like
int i=null;
we will get error message :
Cannot convert null to 'int' because it is a non-nullable
value type
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / manikandan
when we not giving any integer variable. that only it will
be coming null
Is This Answer Correct ? | 0 Yes | 2 No |
what is the Benefit of wrapping database calls into MTS transactions?
How to find size of the file. Which method or function is used to occomplish this?
how to get printout between two dates informations in datareport in vb6.0
How many ways we can access file using VB?
What are the important components of OLEDB?
what controls have you used in your project?
which property is used to lock a textbox to enter data?
How many max. number of controls can place in one form (especially visual basic form)?
DHTML Is used for what?
How do I implement an accelerator key for a text box?
What is Internet Explorer and its uses?
What is the difference between adodc and adodb in vb?