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
What is DDE?
How would you create Visual basic Document file?
advantage and disadvantage in visual-basic and ms-access please tell me or send my mail-id
what are the different Types of Recordsets.
What is Pseudocode?
how a multiple routing works ?
What is ado data control in vb?
How would you attach pictures in Treeview Control?
How would you create properties in ActiveX Control?
How would you convert a form into document?
What are the important components of OLEDB?
How can you Navigate from the DHTML application to another DHTML application? .
Can a VB application be an OLE server?
What do you know about chaining views.
___,___ and __ are difference between image and picture controls.