Multiple choice

The closing braces of structure are followed by a __________.

  1. colon

  2. dot

  3. semicolon

  4. none of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In C and C++, structure definitions must end with a semicolon after the closing brace. This is because a structure declaration is a statement and requires proper termination. The semicolon is mandatory even when defining structure variables.