Question: (C programming) Write a function, printDashHex, that takes an integer as a parameter and prints the integer as hex digits. Each hex digit in the
(C programming) Write a function, printDashHex, that takes an integer as a parameter and prints the integer as hex digits. Each hex digit in the printout should be separated by a single dash with a newline at the end. The printout must be a full 32 bit number (i.e. print leading zeros). Values over 9 should be presented as uppercase characters.
For example: printDashHex(0x12ab) should print: 0-0-0-0-1-2-A-B
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
