I need to convert from two\'s complement to sign-magnitude in C using only the operators
! ~ & ^ | + << >>
My approach is t
When you're converting from 2 complement, you should subtract 1, not add.