3 ms·
Interesting. In C++, a variable can have global scope, file scope, class/object scope, or local scope. A function can have global scope, file scope, or class/
by AnimalMuppet 11y ago
Interesting. In C++, a variable can have global scope, file scope, class/object scope, or local scope. A function can have global scope, file scope, or class/object scope. This lets you create a function that has local scope.
- doomrobo 11y agoYou can even do that in C (non-standard, of course) using clang with the Blocks extension