how to swap the variables without using temp and operators
Answer / santhosh
int a, b;
a = 10;
b = 20;
a = a + b;
//a=30
b = a - b;
a = a - b;
Console.WriteLine("a={0},b={1}", a, b);
Console.ReadLine();
| Is This Answer Correct ? | 10 Yes | 2 No |
What is the main purpose of inheritance law?
what is the difference between class to class type conversion and copy constructor ?
what is difference between thread and programme.
How is the using() pattern useful? What is IDisposable? How does it support deterministic finalization?
WAP to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
Why do we use polymorphism in oops?
What is Dynamic Polymorphism?
polymorphism means?
when my application exe is running nad i don't want to create another exe what should i do
hi all..i want to know oops concepts clearly can any1 explain??
In which Scenario you will go for Interface or Abstract Class?
1 Answers InfoAxon Technologies,
WHEN A COPY CONSTER IS CALL ?