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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!