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


Please Help Members By Posting Answers For Below Questions

c program for searching a student details among 10 student details

1643


What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?

893


What is the newline escape sequence?

576


Can we declare a function inside a function in c?

572


What are the types of operators in c?

602






Why isn't it being handled properly?

632


What is calloc malloc realloc in c?

579


Explain the priority queues?

611


Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.

647


What are run-time errors?

590


Can you subtract pointers from each other? Why would you?

550


What is cohesion in c?

532


which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above

1403


What is the difference between abs() and fabs() functions?

596


What is the purpose of 'register' keyword?

680