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 |
How do I use GetPrivateProfileString to read from INI files?
How do I set the Windows wallpaper at runtime?
what are Instancing for classes provided by ActiveX component like prive, publicnotcreatable,SingleUse, GlobalSinleUse,MultiUse.
State about the different types of visual basic data?
Which property of textbox cannot be changed at runtime. What is the max size of textbox?
Using which type we can access file line by line?
How would you attach pictures in Treeview Control?
What is the use of Hyperlink control for DHTML applications?
What is DAO?
how can i connect the samble database that comes with vb-6 (biblio.mdb) to a datagrid using code? ie what code i have to put in load event
Different types of Passing Value?
Binary Access-method isused to access file in which manner?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)