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 |
WAP find square root of any number (without using sqrt() )?
What are objects in oop?
What is inheritance in simple words?
what is difference between String s=new String("vali"); String s="vali"
IN PROGRAMING LANGAUGE A C++ IS PURELY OBJECT ORIENTED OR NOT?
what is mean by design pattern
define oops concept with example
How does polymorphism work?
How do you explain polymorphism?
What is this interview room ? Is it a class or an object.
What is encapsulation in oops?
What are the 5 oop principles?