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


Please Help Members By Posting Answers For Below Questions

Write about c++ storage classes?

740


How can I improve my c++ skills?

552


Is c++ harder than java?

560


What is a v-table?

640


What is the use of register keyword with the variables?

541






What is virtual methods?

652


What you know about structures in C++?

587


What is lvalue?

689


Write a program to concatenate two strings.

577


write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;

1451


Which software is best for c++ programming?

570


What are the unique features of C++.

565


What is virtual destructor ans explain its use?

597


What is an object in c++?

606


Why c++ is better than c language?

555