3 ms·
I would argue that this particular example is useless. A volatile variable at file scope can easily be IO memory. A volatile static at function scope? Not so e
by amluto 7y ago
I would argue that this particular example is useless. A volatile variable at file scope can easily be IO memory. A volatile static at function scope? Not so easy.
- FartyMcFarter 7y agoIt can be set by a debugger for example. In any case, the scope of the variable was not the point of the question. The behaviour doesn't really change if you make the variable a static file-scoped one.