50

What’s the best naming prefix for a global variable?

//

I saw this joke on the wall in my CS lab and, being fairly inexperienced in C++, didn't get it.

Could someone explain it to me?

Mutantoe
  • 703
  • 8
  • 20

1 Answers1

77

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

TartanLlama
  • 63,752
  • 13
  • 157
  • 193