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 encapsulation with real life example?

675


what are the ways in which a constructors can be called?

1675


What is the real life example of polymorphism?

711


Give two or more real cenario of virtual function and vertual object

1951


Can enum be null?

668






Prepare me a program for the animation of train

2084


What is advantage of inheritance?

776


What is meant by oops concept?

684


What is encapsulation process?

666


What is the point of polymorphism?

670


Are polymorphisms mutations?

796


What is overriding in oop?

649


How do you use inheritance in unity?

677


String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?

2036


what are the different types of qualifier in java?

1919