Question: Write a C program that allows input for an integer, where it is passed to a ConvertDecimaltoBinary function that bit shifts the number 8 times,
Write a C program that allows input for an integer, where it is passed to a ConvertDecimaltoBinary function that bit shifts the number 8 times, stores each of those values in an int array, then reads is backwards if the number in the array is even store character '0' in an array or if it is odd store character '1' in a character array. Ultimately, converting decimal to Binary in the way I have explained, in C.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
