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
Explain indirection?
Why is %d used in c?
What does %d do?
What is use of pointer?
Explain what is gets() function?
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above
int far *near * p; means
How can I ensure that integer arithmetic doesnt overflow?
With the help of using classes, write a program to add two numbers.
Explain what are linked list?
How can I insert or delete a line (or record) in the middle of a file?
What are pointers really good for, anyway?
Is c pass by value or reference?
write a program to find the given number is prime or not
What are the advantages of using new operator as compared to the function malloc ()?