why volatile can repeat declare?
#include <stdio.h> volatile int isInit_STD; volatile int isInit_STD; int main() { printf("v-%d-addr%x\n",isInit_STD,&isInit_STD); isInit_STD = 1; printf("v-%d-addr%x\n",isInit_STD,&isInit_STD); return 0; } and the result is: v-0-addr387fd040 v-1-addr387fd040 why volatile can repeat declare? It turns out they are all the same, the same address. If one of them deletes the ‘volatile’, that can’t be compiled success. I want… Read More why volatile can repeat declare?