3 ms·
Globals are always initialized. If no initial value is specified, they’re initialized to zero. What’s undefined here is calling a function pointer that contain
by mikeash 9y ago
Globals are always initialized. If no initial value is specified, they’re initialized to zero.
What’s undefined here is calling a function pointer that contains zero. Thus the compiler assumes that it must have been set before being called, and since there’s only one value it could possibly be set to, it must be that value.