#include void display_memory () {INT i; unsigned char ch; unsigned char * p; char s [80]; printf ("/ nbeginning address (in hex): / n"); scanf ("% P% * c ", & p); Printf ("% p: / t ", p); / * Output address * / for (i = 0; i <256; i ) {ch = * p; printf ("% 02X ", CH); P ; if (! (I% 16)) {Printf (" / n "); if (i! = 256) {Printf ("% p: / t ", p);}}} }
Int main () {Display_Memory (); return 0;}
Read a data starting from the input address in memory.