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 causes polymorphism?
What is the difference between class and structure?
what is diff between .net 1.1 and .net 2.0
write a c++ program to find maximum of two numbers using inline functions.
State what is encapsulation and friend function?
write a program in c++ to overload the function add (s1,s2) where s1 and s2 are integers and floating point values.
What is multilevel inheritance in oop?
what is different between oops and c++
what is the need of abstraction? what is abstraction?what is the abstraction for stack?
What are the 4 pillars of oop?
What is encapsulation?
advantage and disadvantage in c++>>oops and what are the questions ask for interview in c++>>oops. could you tell me or reply me