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 |
What is difference between multiple inheritance and multilevel inheritance?
Can we create object of abstract class?
What is overriding in oops?
Why is polymorphism important in oop?
Differences between inline functions and non-inline functions?
explain dynamic binding by drowing
In c++ there is only virtual destructors, no constructors. Why?
what do you mean by static member variable?
What is object in oop with example?
#include <iostream> using namespace std; int main() { int a = 3; int c[5][5]; for (int x=0;x<5;x++) { for (int y=0;y<5;y++) { c[x][y] = x*y; } } cout << c[a][2]; }
What is encapsulation in oops?
can we make a class static without using static keyword?