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 oops and why we use oops?
What is a scope resolution operator?
IN PROGRAMING LANGAUGE A C++ IS PURELY OBJECT ORIENTED OR NOT?
Describe what an Interface is and how it?s different from a Class.
What is the renewal class?
can main method be overloaded...??? How..????
143.what is oops principles?
What is a superclass in oop?
what is polymorphism?
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
why constructor cannt be declar virtually? why destructor cannt be overloaded?
what is object slicing