write a program to swap Two numbers without using temp variable.

Answer Posted / thangaraj

a=a^b;
b=b^a;
a=a^b;

Is This Answer Correct ?    13 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What happens if you free a pointer twice?

594


What are the rules for identifiers in c?

579


What is the use of gets and puts?

588


What is floating point constants?

676


Give basis knowledge of web designing ...

1562






What does %d do?

705


Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.

1486


How can I invoke another program (a standalone executable, or an operating system command) from within a c program?

641


Is it possible to execute code even after the program exits the main() function?

799


What is 02d in c?

622


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15027


What are variables c?

602


Explain why c is faster than c++?

562


What is console in c language?

596


What is anagram in c?

510