Read a data in memory

zhaozj2021-02-16  67

#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.

转载请注明原文地址:https://www.9cbs.com/read-18230.html

New Post(0)