What is the semicolon in C++?

Viewed 32710

Roughly speaking in C++ there are:

  • operators (+, -, *, [], new, ...)
  • identifiers (names of classes, variables, functions,...)
  • const literals (10, 2.5, "100", ...)
  • some keywords (int, class, typename, mutable, ...)
  • brackets ({, }, <, >)
  • preprocessor (#, ## ...).

But what is the semicolon?

11 Answers
Related