What happens when a global variable is incremented in C? How many memory accesses ? (Both reads & writes)

前端 未结 0 461
失恋的感觉
失恋的感觉 2021-02-08 10:10

Assume g1 is a global variable in a given C program.

int g1 = 0;

I have set a watchpoint using gdb to know the number of memory accesses. When I i

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