Question: Write a C program that could input a decimal number and output in the 2's-complement system. Use a total of eight bits, including the sign
Write a C program that could input a decimal number and output in the 2's-complement system. Use a total of eight bits, including the sign bit. (a)* +32 (b)* -14 (c)* +63 (d)* -104 (e)* +127 (f)* -127 (g)* +89 (h)* -55 B (i) -1 (j) -128 (k) +169 (l) 0 (m) +84 (n) +3 (o) -3 (p) -190
* While the program is running, be able to INPUT a decimal number and will OUTPUT in the 2's-complement system. So input one at a time.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
