The joke of global variables

What is the best naming prefix for a global variable?

//

I saw this joke on the wall in my CS lab and, being quite inexperienced in C ++, did not receive it.

Can anyone explain this to me?

+47
c ++ global-variables global
Jul 15 '15 at 9:19
source share
1 answer

// means the rest of the line is a comment. Global variables are usually perceived as poor design, so the joke is that the best thing to do with global variables is to get rid of them.

+72
Jul 15 '15 at 9:20
source share



All Articles