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 |
Can private class be inherited?
why we are declare the function in the abstract class even though we are declaring it in Derived class?
What is property in oops?
what is the use of classes in c++;
Is enum a class?
what is the difference between class and object?
What is object-oriented programming? Webopedia definition
What is ambiguity in inheritance?
Hi All, I am new to programming and want to know how can i write a code to take input of 2 numbers from user and swap it without using a temp variable?
what type of question are asked in thoughtworks pair programming round ?
Why is destructor used?
How do you answer polymorphism?