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 code for call by value and call by reference?
What is difference between #define and const?
• What are the desirable attributes for memory managment?
What is the difference between the C & C++?
What is pure oop?
What is the importance of oop?
Iam doing my project on instant messaging , if you any new ideas regarding this project ,please suggest it?
What is object-oriented programming? Webopedia definition
Write a program in c++ to read two floating point numbers and find their sum and average.
What do you mean by stack program? Get me an example stack program?
What does no cap mean?
DIFFRENCE BETWEEN STRUCTURED PROGRAMING AND OBJCET ORIENTED PROGRAMING.