Which of the following characters is a terminal that terminates a statement in…

2018

Which of the following characters is a terminal that terminates a statement in C++?

  1. A.

    Semicolon (;)

  2. B.

    Colon (:)

  3. C.

    Ampersand (&)

  4. D.

    Dollar ($)

Attempted by 308 students.

Show answer & explanation

Correct answer: A

In C++, every executable statement must end with a semicolon (;). This symbol signals the compiler that the command is complete before proceeding to the next line of code.

Explore the full course: Uppsc Polytechnic Lecturer 2025 Cs