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 |
Which property of menu cannot be set at run time?
what are the Control Categories?
What are the types of Instancing property that can be set for a Class in a ActiveX DLL and ActiveX EXE?
How do I get a bitmap picture in a field in an Access database?
What is hyperlink?
how to use telugu language in vb6? any unicode data is available for telugu or not?yes means how to use? my desired output is telugu only? i am doing project like(telugu calendar),my output should be print in telugu only? pls send me the solution with code?
How would you attach an ActiveX control in Your Application?
To connect the Data Control with Back end What are all the properties to be set?
what are the Parts of ODBC?
what is the Difference between DDE and OLE?
How to get Cursor position using API?
How many types of ActiveX Components are there in Visual Basic and what are they?