Confusion of virtual memory

前端 未结 0 1665
时光取名叫无心
时光取名叫无心 2021-02-01 23:45

Consider a sample below.

char* p = (char*)malloc(4096);
p[0] = \'a\';
p[1] = \'b\';

The 4KB memory is allocated by calling malloc().

相关标签:
回答
  • 消灭零回复
提交回复
热议问题