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 |
Can you tell me the properties of the controls?
What is the-use of property page Wizard in ActiveX Control?
What do you mean by ADO?
which arguments will be used to run a executable program in shell function ?
What is meant by Establish Connection in RDO?
What is the difference between creating a object using New and CreateObject in Visual Basic?
What is a datacontrol?
what is the Difference between listbox and combo box?
Difference between listbox and combo box.
reading lines from a file by searching a word(instr) and copying to other textfile,but its only copying only one line but there are some other lines match criteria but not copying to the files
What is ADO? What are its objects ?
Explain the usage of Web Browser Control?