Multiple choice

Which of the following is enclosed in double quotation marks?

  1. Integer constant

  2. Floating Constant

  3. Character Constant

  4. String Constant

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

In C++, string literals are enclosed in double quotation marks, whereas character constants are enclosed in single quotation marks.