itsphbytes.wordpress.com
2’s Complement – C Program
We can obtain 2’s complement in atleast two ways through a C program. If n is a number then -n will give the result. The next approach is to first flip all the bits (1’s complement) and…