[net.unix-wizards] C puzzle: ~us

Harbison@TL-20A.ARPA (12/09/84)

What should the following program print, assuming "short" is implemented in
16 bits and "int" in 32 bits, using standard two's complement representation?

main(){
  unsigned short x = 0xfffe;
  printf("%8x\n", ~x)
}

Hint: Your choices are "1" or "ffff0001".
-------