Read and write to a memory location

前端 未结 9 1262
忘掉有多难
忘掉有多难 2021-01-05 05:40

After doing lot of research in Google, I found below program

#include 

int main()
{
    int val;
    char *a = (char*) 0x1000;
          


        
9条回答
  •  鱼传尺愫
    2021-01-05 06:18

    First you need to be sure about memory location where you want to write into. Then, check if you have enough permission to write or not.

提交回复
热议问题