LogiQuest
Back to Bitwise Operators
6

What will be the output of the program?

#include <stdio.h>

int main(void) {
    int x = 5, y = 9;
    x ^= y; y ^= x; x ^= y;
    printf("%d %d\n", x, y);
    return 0;
}
Hard

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.