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
A line break is a special character used to insert a new line or start on a new line within a string. In most programming languages, the common escape sequence for creating line breaks is "\n".
Related terms
String Literal: A sequence of characters enclosed in quotation marks (" ") that represents text data.
Escape Character: A character used alongside other characters to represent non-printable or special characters.
Concatenation: The process of combining two or more strings together into one longer string.