write a program to swap Two numbers without using temp variable.
Answer Posted / ashish omar
Suppose: a = 3
b=2;
11
10
a = a ^ b;
11
10
==
01
b = a ^ b;
01
10
==
11
a = a ^ b;
01
11
==
10
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the difference between the local variable and global variable in c?
What is p in text message?
Should a function contain a return statement if it does not return a value?
Differentiate between full, complete & perfect binary trees.
Can you think of a logic behind the game minesweeper.
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
What is use of null pointer in c?
What is c programing language?
Why c is called free form language?
Why do we use main function?
Why array is used in c?
Process by which one bit pattern in to another by bit wise operation is?
When c language was developed?
What is static identifier?
What is array in C