Question: Modify the printf statement of the show_bytes_2() function such that, instead of using array notation to access each element of the array start, it uses
Modify the printf statement of the show_bytes_2() function such that, instead of using array notation to access each element of the array start, it uses pointer notation to access each of these elements. The output of your function should be the same as the funciton you modified in a. above, with each pair of values memory address and memory content printed on its own line:
0x7ffe5fb887cc 0x80
void show_bytes_2(byte_pointer start, size_t len) { size_t i; for (i = 0; i < len; i++) printf(" %.2x", start[i]); printf(" "); return; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
