how to swap 2 numbers in a single statement?

Answer Posted / ushagva1

a=a+b-(b=a);

Is This Answer Correct ?    21 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What the advantages of using Unions?

673


What is the difference between strcpy() and memcpy() function in c programming?

626


List some of the static data structures in C?

762


What is logical error?

605


Where is c used?

650






‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.

1879


How can variables be characterized?

1652


What is a struct c#?

601


What is the use of function in c?

715


How to compare array with pointer in c?

625


Did c have any year 2000 problems?

657


What is the scope of global variable in c?

558


What is sizeof in c?

571


What does a function declared as pascal do differently?

607


I need a sort of an approximate strcmp routine?

661