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 is balance factor?

587


What is encapsulation c#?

600


How do you use inheritance in unity?

590


What is encapsulation in oop?

604


hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.

1541






class type to basic type conversion

1835


Why do we use oops?

593


Can a destructor be called directly?

599


What is the benefit of oop?

570


How many human genes are polymorphic?

570


Why is object oriented programming so hard?

616


There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

1458


what is different between oops and c++

2001


hi all..i want to know oops concepts clearly can any1 explain??

1681


Where You Can Use Interface in your Project

1425