how to swap two numbers with out using temp variable
Answer Posted / pranav
//swaping of 2 numbers without using temp variable
//a=5 & b=6
a=a+b; //a=30
b=a-b; //b=5
a=a-b; //a=6
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What does flush do c++?
Explain function overloading
What is pointer to array in c++?
What is the difference between an external iterator and an internal iterator?
What is istream c++?
Explain the register storage classes in c++.
What are the implicit member functions of class?
Explain register storage specifier.
What are formatting flags in ios class?
What is the v-ptr?
Do you need a main function in c++?
Write about an iterator class?
Explain mutable storage class specifier.
Program to check whether a word is a sub-string or not of a string typed
Can we use this pointer inside static member function?