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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What does and I oop mean?

614


What does enum stand for?

609


Why is destructor used?

581


What is methods in oop?

537


Do you know about multiple inheritance?

637






What is cohesion in oop?

621


How to call a non virtual function in the derived class by using base class pointer

5253


How do you use inheritance in unity?

588


What is class in oop with example?

616


What is the use of oops?

619


What type of loop is a for loop?

682


Explain virtual inheritance?

682


Why is oop useful?

602


If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?

942


What is balance factor?

582