will this code works fine? or will it gives error?
Object obj=5;
int i=6;
i=i+obj;
Answer Posted / deepika
It will give error: "Operator '+' cannot be applied to
operands of type 'int' and 'object'"
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is renderbody?
What is display mode in mvc?
What is viewbag title?
How to change the action name in mvc?
Explain entity lifecycle? : Entity framework
What is viewdata?
Explain the use of Inversion of control (IOC)?
Does Tempdata hold the data for other request in ASP.Net MVC?
Name a few different return types of a controller action method?
What is the difference between renderaction and renderpartial?
Can we add constraints to the route? If yes, explain how we can do it?
How do you assign a value to a complex number 7 how has exception hand changed in .net framework 4.0?
Can I remove .net framework?
Which version of .net framework is installed?
Describe the gac in the .net framework.