write a program to swap Two numbers without using temp variable.
Answer Posted / niharika
class java
1.b=(a+b)-(a=b);
2.a^=b^=a^=b;
3.a=a+b;
b=a-b;
a=a-b;
4.a=a*b;
b=a/b;
a=a/b;
rohanraju143@gmail.com from NIT Waramgal
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
How many bytes are occupied by near, far and huge pointers (dos)?
What is the modulus operator?
What do you mean by invalid pointer arithmetic?
Why c language?
Who developed c language and when?
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
What is the difference between int main and void main?
How many data structures are there in c?
What is queue in c?
What is the use of getch ()?
Place the #include statement must be written in the program?
When is a “switch” statement preferable over an “if” statement?
Give differences between - new and malloc() , delete and free() ?
Is it acceptable to declare/define a variable in a c header?
What is difference between far and near pointers?