๐Ÿ’ปap computer science a review

Escape characters

Written by the Fiveable Content Team โ€ข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโ€ขWritten by the Fiveable Content Team โ€ข Last updated September 2025

Definition

Escape characters are special characters that are used to represent certain actions or non-printable characters within a string. They are preceded by a backslash (\) and allow you to include characters like quotes, newlines, or tabs in your strings.

"Escape characters" also found in: