âGood Morning! said Bilbo, and he meant it. The sun was shining, and the grass was very green. But Gandalf looked at him from under long bushy eyebrows that stuck out further than the brim of his shady hat.
C / C++ / VC++ / MFC Interview Questionsâ > âCâ > âFrequently Asked Questionsâ > â. static is an access qualifier that limits the scope but causes the variable to exist through out the lifetime of the program.
In C++ one can have a 'GLOBAL FUNCTION', which means it does not belong to any class. I wondered if that isn't just a violation of the basic principles of OOP? What would be the difference with using a global function or function that is static in a class?