how to swap two numbers with out using temp variable
Answer Posted / prasannaroy
a=10;
b=20;
b=a+b-(a=b);
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
When do you call copy constructors?
What does count ++ do in c++?
Can notepad ++ run c++?
Is map sorted c++?
What is the difference between delegation and implemented-in-terms-of?
Explain polymorphism?
Do the names of parameters have to agree in the prototype, definition, and call to the function?
How java is different from c and c++?
If a function doesn’t return a value, how do you declare the function?
What is the need of a destructor?
Why the usage of pointers in C++ is not recommended ?
What is main function in c++ with example?
Should you pass exceptions by value or by reference?
Who invented turbo c++?
List the advantages of inheritance.