Domanda di colloquio di Global Edge Software

how do u swap number using bitwise operator

Risposta di colloquio

Anonimo

12 feb 2018

#include int main() { int x=10,y=5; x = x^y; y = x^y; x = x^y; printf("After swapping: x=%d, y=%d",x,y); return 0; }

2