Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 encapsulation?

17 Answers   TCS,


Why is oop useful?

0 Answers  


What do you mean by abstraction?

0 Answers  


What is ambiguity in c++

4 Answers   Accenture, Mphasis,


Program to read a comment string

1 Answers   IBM,


What is virtual class and friend class?

5 Answers   IBS, Intel, Wipro,


c++ is a pure object oriented programming or not?

5 Answers   Wipro,


What is encapsulation selenium?

0 Answers  


What is encapsulation oop?

0 Answers  


Does c++ support multilevel and multiple inheritance?

9 Answers   IBS, Wipro,


Differences between inline functions and non-inline functions?

4 Answers   Ness Technologies,


Can we create object of interface?

0 Answers  


Categories