What does a single semicolon represent in C++?

Options

  • A. A class declaration
  • B. A function definition
  • C. An empty statement
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

C. An empty statement

Detailed Explanation

Correct Answer: C — An empty statement.

Explanation: A standalone semicolon represents an empty statement in C++. It performs no operation. For example, while (condition); has an empty loop body.