Question: Complete the following function, max_consecutive_hex_digits, so that it returns the maximum number of consecutive run of hex digit and the hex digit in the unsigned

Complete the following function, max_consecutive_hex_digits, so that it returns the maximum number of consecutive run of hex digit and the hex digit in the unsigned long long variable (64 bits) on TM4C123 that is passed to it. If there is a tie, return any ONE of the hex digit in the tie. Note - You may not change the function definition signature (prams and return type). You may have to pack/encode/interpret the result in the unsigned char return value. For example, in the unsigned long long number 0xFFF4 8 OFF FFF5 F123, 'F' occurs 5 times consecutively in the hex representation of unsigned long long number 0xFFF4 8OFF FFF5 F123. unsigned char max_consecutive _hex_digits (unsigned long long x) {//YOUR CODE HERE
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
