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
Can we make copy constructor private in c++?
What are disadvantages of pointers?
Explain deep copy?
If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?
Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers
What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?
What is the best free c++ compiler for windows?
What are the extraction and insertion operators in c++? Explain with examples.
How are Structure passing and returning implemented by the compiler?
What are the unique features of C++.
Write about c++ storage classes?
How do we balance an AVL Tree in C++?
What new()is different from malloc()?
Explain how to initialize a const data member.
How can I learn c++ easily?