swapping of two numbers without using third variable using
AND and OR operators
Answer Posted / ramesh reddy
a = a^b; b =a^b; a =a^b;
or
a=a+b; b=a-b; a=a-b;
| Is This Answer Correct ? | 43 Yes | 2 No |
Post New Answer View All Answers
What is the return type of sizeof?
How can I read data from data files with particular formats?
What is main function in c?
What is pass by value in c?
When should we use pointers in a c program?
What is static and auto variables in c?
What is scope rule in c?
Explain what is the difference between the expression '++a' and 'a++'?
program to convert a integer to string in c language'
Calculate 1*2*3*____*n using recursive function??
Explain what is a const pointer?
Write a C program in Fibonacci series.
Explain why c is faster than c++?
What is the maximum length of an identifier?
What is main () in c language?