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 advantage in software? what is the difference between the software developer and Engineer
Is html an oop?
What is the correct syntax for inheritance? 1) class aclass : public superclass 2) class aclass inherit superclass 3) class aclass <-superclass
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
what is the function of 'this' operator ?
program in c++ that can either 2 integers or 2 floating point numbers and output the smallest number
What is the purpose of enum?
What is the real time example of encapsulation?
difference between class and object
10 Answers Chandan, IBM, Magic Soft,
How many types of access specifier in c# and vb.net?
Which is the only operator in C++ which can be overloaded but NOT inherited?
what is overloading and overriding?