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 the Difference between Dynaset and Snapshot?
by writing MACRO CODE,i want to retrive data from one spead sheet to another UI (workbook). control will search cell by cell for each row and load the data in another workbook(UI). ex: custdetails custname lastname locaton mobile pincode custdetails raj tony hyd 555555 521245 servcreqrd srvce# srvcename location srvcepincode servcreqrd 754 drilling hyd 521784 for the above example in the another workbook retrive data like this custname Raj srvce# 754 srvcepincode 521784. while retrieving data control will search cell by cell for each row.
What is database vb?
Does VB support pointers to functions?
How would you Create a Query Builder and Explain its uses ?
What are the uses of List View Control?
When should we use recursive programming?
Difference between Dynaset and Snapshot?
How would you add elements in TreevieW Control.
Explain OLE Drag and Drop?
How would you map properties to controls by using ActiveX Control Interface Wizard?
What is FireHouse Cursors?
Explain about creating VB applications in excel?
How do I make an animated icon for my program?
How can you get selected file from file system Control?