How do we swap or interchange any 2 numbers without using
Temporary variable...Anybody can pls answer it.. Thanks in
Advance
Answer Posted / raghuram.a
int x,y;
x =x-y;
y =y+x;
x =y-x;
or
int x,y;
x=x^y;
y=x^y;
x=x^y;
| Is This Answer Correct ? | 11 Yes | 7 No |
Post New Answer View All Answers
how we can make 3d venturing graphics on outer interface
What is c language used for?
int far *near * p; means
Explain what is a program flowchart and explain how does it help in writing a program?
What is the best organizational structure?
What is difference between && and & in c?
What is the use of clrscr?
What is the basic structure of c?
State two uses of pointers in C?
Is that possible to store 32768 in an int data type variable?
What is memory leak in c?
explain what is fifo?
How do I use strcmp?
What are register variables? What are the advantage of using register variables?
Do you know the difference between malloc() and calloc() function?