user695652 user695652 - 1 year ago 136
C++ Question

Semicolon after Function

Is there a specific reason why some people put a semicolon after the curly closing function bracket?

void foo() {


Answer Source

Not really, the semicolon there makes no difference. It's probably a matter of habit.

You can put as many semicolons if you want though in C++11:

void foo() {

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download