Mastering C++: 2026 All-In-One Quiz – Ace 'Thinking in C++' with Comprehensive Practice!

Session length

1 / 805

What must follow a C++ access specifier in a structure declaration?

A semicolon

A curly brace

A colon

Typically, in a C++ structure declaration, an access specifier is followed by a colon, which is then followed by a list of member declarations enclosed in curly braces. This allows for the separation of public and private members within the structure. A semicolon is used to terminate the entire structure declaration, while a curly brace is used to enclose the list of member declarations. Using a comma after an access specifier in a structure declaration is incorrect and may result in a syntax error.

Get further explanation with Examzify DeepDiveBeta

A comma

Next Question
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy