int main() { int var = 0;; // Typo which compiles just fine }
When using ;, please also be aware about one thing. This is ok:
;
a ? b() : c();
However this won't compile:
a ? b() : ; ;