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 |
Explain the usage of Web Browser Control?
How do you avoid the "Invalid use of null" error when reading null values from a database?
How would you attach an ActiveX control in Your Application?
How many ways you can access file using VB?
Explain about the basic features of Visual basic?
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 the meaning of cts company logo?..
How would you attach pictures in Treeview Control?
Are there any examples of commercial applications built using Visual Basic?
What kind of components can you use as DCOM servers?
What does the NewIndex property return?
how to use unicode data in vb6 regarding to telugu language, my output is in only telugu language