#include int myNum = 3; //global void printNum(); int main() { int myNum = 1; //local printNum(); std::cout
@FrederikWollert8 ай бұрын
I really like your C++ series. Keep it up. Please make more C++ Videos. So, let's defeat the KZbin algorithm.
@hehefunny91292 жыл бұрын
Yu the best ❤️
@yahyaarfaoui8526 Жыл бұрын
std::cout
@gamsterilyass29526 ай бұрын
❤ ❤
@oximas-oe9vf2 жыл бұрын
what do you mean by " "pollutes" the global namespace " ?
@BurninVinyl9 ай бұрын
Re-watch about namespace. In C++ global variables can potentially pollute the namespace by making it more difficult to disambiguate between variable names and other entities with the same name. This can lead to code that is harder to read and maintain. It's generally recommended to use namespaces or other scoping mechanisms to avoid this issue.
@Nightmare-bo7xi4 ай бұрын
so what is printNum and how is it related to myNum