Question: Write code in c prototypes for ConvertDecimalToBinary and PrintBinary function ConvertDecimalToBinary0 pass in input decimal number and array to hold binary number (8 cells 1
prototypes for ConvertDecimalToBinary and PrintBinary function ConvertDecimalToBinary0 pass in input decimal number and array to hold binary number (8 cells 1 for each bit) In for loop, use right bitshift to divide by 2 In for loop, use a bitmask to determine if odd or even and ternary if to assign 1 or 0 to bit array function PrintBinary pass in binary number array Use for loop to print out each element of binary number array main Input loop Ask for decimal number to convert If entered number is not between 0 and 255
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
