/* * Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 * Repo: https://github.com/notamitgamer/bsc * License: MIT */ /* WAP to swap two integer variable without using Third variable. */ #include int main() { int a = 4, b = 6; printf("Before swap : A = %d and B = %d", a, b); a = a ^ b; b = a ^ b; a = a ^ b; printf("\nAfter swap : A = %d and B = %d", a, b); return 0; }