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
In int main(int argc, char *argv[]) what is argv[0] a) The first argument passed into the program b) The program name c) You can't define main like that
What are punctuators in c++?
Should I learn c or c++ first?
Do vectors start at 0 c++?
What is the use of lambda in c++?
Can manipulators fall in love?
write a porgram in c++ that reads an integer and print the biggest digit in the number
Explain rtti.
Is c++ built on c?
What is expression parser in c++
What are the general quetions are in DEna bank manager IT/System interviews?
When must you use a pointer rather than a reference?
Is java the same as c++?
What are the uses of typedef in a program?
What is c++ manipulator?