Accessing direct memory addresses and obtaining the values in C++

前端 未结 5 1407
遇见更好的自我
遇见更好的自我 2020-12-31 04:14

I was wondering if it was possible to access a direct block of memory using C/C++ and grab the value. For example:

int i = 15;
int *p = &i;
cout <<         


        
5条回答
  •  难免孤独
    2020-12-31 04:49

    The two processes have separate address spaces. One process cannot access another processses memory unless it is explicily shared memory.

提交回复
热议问题