Write a program to interchange two variables without using
the third variable?
Answer Posted / saravanan j (srm universi
you can apply it on any language?!
x = x xor y
y = x xor y
x = x xor y
* 1 year ago
Source(s):
Self Expierince
| Is This Answer Correct ? | 18 Yes | 12 No |
Post New Answer View All Answers
What is the use of a ‘ ’ character?
Explain how can I prevent another program from modifying part of a file that I am modifying?
Can stdout be forced to print somewhere other than the screen?
Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.
Is using exit() the same as using return?
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?
What are the modifiers available in c programming language?
Differentiate between functions getch() and getche().
What are the different properties of variable number of arguments?
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
Explain how can you restore a redirected standard stream?
How pointers are declared?
Where is volatile variable stored?
how to make a scientific calculater ?
the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above