i^=j;
j^=i;
i^=j;
value of i,j



i^=j; j^=i; i^=j; value of i,j..

Answer / xyz

this code snippet will swap the value of i and j
This code works same as
i=i+j;
j=i-j;
i=i-j;

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More OOPS Interview Questions

What is basic concept of oop?

0 Answers  


What is and I oop mean?

0 Answers  


what is the use of mutable key word

3 Answers   HCL,


Write an operator overloading program to Overload ‘>’ operator so as to find greater among two instances of the class.

1 Answers  


What is the fundamental idea of oop?

0 Answers  






Where You Can Use Interface in your Project

0 Answers   KPIT,


What is variable example?

0 Answers  


What is polymorphism explain?

0 Answers  


What is the difference between inheritance and polymorphism?

0 Answers  


What are the benefits of interface?

0 Answers  


Can a varargs method be overloaded?

0 Answers  


What are the 4 main oop principles?

0 Answers  


Categories