Please, read ones' complement, and two's complement as well.
TL; DR; To get ones' complement you invert all the bits. This includes the sign bit (since your type is a signed int). That's why it will be negative. Also, negative numbers are represented as two's complement. But since two's complement = ones' complement + 1, your result will be one less than the original number with its sign flipped. (ones' complement = two's complement -1).
Check out this question as well.