Why bitwise operation (~0); prints -1 ? In binary , not 0 should be 1 . why ?
(~0);
It's binary inversion, and in second complement -1 is binary inversion of 0.