Escape sequences – special characters

An escape sequence is a combination of characters in technical informatics that does not represent text, but is intercepted by the device and performs a special function.

CharacterMeaning
\’Single quote
\”Double quote
\?Question mark
\\Backslash
\bBackspace
\fNew page
\nNew line
\rCarriage return
\tHorizontal tab
\vVertical tab
Example
#include <iostream>
using namespace std;

int main() {
    cout << "Heading:\n\'single quote\'\n\"double quote\"\nDo you have questions\?" << endl;
}
Output
Heading:
'single quote'
"double quote"
Do you have questions?