how to swap two numbers with out using temp variable
Answer Posted / sachin patil
a = 5;
b = 10;
a = a+b;
b = a-b;
a = a-b;
| Is This Answer Correct ? | 55 Yes | 5 No |
Post New Answer View All Answers
What are manipulators used for?
How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?
What is encapsulation in c++ with example?
Write a struct time where integer m, h, s are its members?
Why do we use vector in c++?
Will a recursive function without an end condition every quit, in practice a) Compiler-Specific (Some can convert to an infinite loop) b) No c) Yes
Is c++ the hardest programming language?
Explain about Virtual Function in C++?
What is a container class?
why is iostream::eof inside a loop condition considered wrong?
what is scupper?
Why do we use constructor?
Is facebook written in c++?
What does the ios::ate argument do?
What is pure virtual function?