C Program Swap Two Variables using Bitwise XOR
C Program Swap Two Variables using Bitwise XOR Swap Two Variables using Bitwise XOR: C Program #include <stdio.h> int main() { int n1,n2; printf(“Enter two numbers to swap values using Bitwise XOR Operator\n”); scanf(“%d%d”, &n1, &n2); printf(“Before swapping: n1=%d and n2=%d”, n1,n2); n1 = n1 ^ n2; n2 = n1 ^ n2; n1 = n1… Read More »