3 ms·
When you declare a `static char *p;', how do you even know in which address of memory it is going to end up ?? How do you know what will happen if another compi
by AshamedCaptain 2y ago
When you declare a `static char *p;', how do you even know in which address of memory it is going to end up ?? How do you know what will happen if another compilation unit declares another variable of the same name? Another static library? Another dynamic library? What about initialization, what about other constructors that may read memory before main() runs? What about injected threads that are started before that? Madness, I tell you, absolute and utter madness.