Last time I asked how can I generate segmentation fault in a program by bypassing the compiler’s promise of not overwriting the const memory. User Marco Bonelli described the following way, which worked perfectly. Either way I was able to generate segmentation fault. Now my question is what is it that is preventing the pointer from writing to a global