will this code works fine? or will it gives error? Object
obj=5; int i=6; i=i+obj;
Answer Posted / alb.shah
can not applied this because i is value type and obj is
reference type so this will create error
//u can do this
Object obj = 5;
int i = 6;
i = i + Convert.ToInt32(obj);
| Is This Answer Correct ? | 15 Yes | 2 No |
Post New Answer View All Answers
What are the options in ASP.NET to maintain state?
What are the asp.net server side objects?
What is skin in asp.net?
What is the maximum number of classes that can be contained in one dll file?
Explain about asp.net state management?
What are the new navigation controls in asp.net 2.0?
What happens if an ASP.NET server control with event-handling routines is missing from its definition?
Explain the asp.net mvc folder conventions? : asp.net mvc
What is manifest in .net framework?
What tags do you need to add within the asp:datagrid tags to bind columns manually? How?
What is the appSettings Section in the web.config file?
List the major built-in objects in asp.net?
What is the difference between asp.net mvc and asp.net webforms? : asp.net mvc
How do cookies work?
Is post back in asp.net?