Traverse the memory by  (char*) , because every time it will increase by 1byte

when i want get the int value , i need convert (char*) to (int*) , after that ,

it will get the value from continuous 4 bytes .

 

void *p = (void*)0x00C5FBF8;
void *q = (void*)0x00C5FFFF;

for (char* c = (char*)p; c != q ; c++)
{
  int k = *((int*)c);
  printf("%d\n", k);
}

[C++] Memory Retrieval(内存检索)

相关文章:

  • 2021-06-08
  • 2021-06-17
  • 2022-12-23
  • 2021-09-25
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
  • 2022-12-23
猜你喜欢
  • 2021-11-28
  • 2022-12-23
  • 2022-01-12
  • 2021-12-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案