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 is query string? What are its advantages and limitations?
How many web.config files can I have in an application?
How we implement the multiple paypal value with gridview in my website and how we make a payment through Credit Card.
Is asp.net mvc still used? : Asp.Net MVC
What is cached data phone?
Which is faster viewbag or viewdata?
What is session state server?
How do cookies work?
How do sessions work?
Which is faster viewdata or viewbag?
What are the disadvantages of asp.net?
Explain how asp.net different from asp?
What are the different types of sessions in asp.net?
What is full trust in asp.net?
Is razor a programming language?