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
When is a void pointer used?
When is a null pointer used?
What is 1f in c?
what will be the output for the following main() { printf("hi" "hello"); }
Are pointers really faster than arrays?
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
What is a example of a variable?
Is c compiled or interpreted?
What are the types of type qualifiers in c?
What is the difference between formatted&unformatted i/o functions?
What is the role of && operator in a program code?
What does s c mean on snapchat?
Tell me is null always defined as 0(zero)?
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
What tq means in chat?