Question: write a C program that does the following: 1. Prompts the user to enter an unsigned integer and then prints out the binary value stored
write a C program that does the following:
1. Prompts the user to enter an unsigned integer and then prints out the binary value stored (in hex).
Demonstrate by entering different valid and invalid numbers. Explain what is happening.
2. Modify your program so that it repeats the above but prompts for four different unsigned integers - one 8-bit, one 16-bit, one 32-bit and one 64-bit.
Again, demonstrate using valid and invalid numbers.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
