Back
Asciify Logo
Asciify

Latin Small Letter N

Few letters are as tightly associated with a single escape sequence as lowercase 'n' — the combination \n for newline is among the first pieces of syntax most programmers encounter and among the last they stop using. It is the fourteenth letter of the Latin alphabet, an alveolar nasal consonant that accounts for roughly 6.7 % of characters in typical English corpora, making it one of the more common consonants. Its ASCII code point is 110 (0x6E), 32 above its uppercase counterpart 'N' at 78 (0x4E), maintaining the single-bit case offset (bit 5) shared by all ASCII A–Z / a–z pairs.

Latin Letter

Technical Details

Code Example

</>
// \n newline and n as count
int n = 5;
for (int i = 0; i < n; i++) {
printf("Line %d\n", i + 1); // \n adds newline
}

Common Usage

  • Newline escape sequence: In C-style strings and most mainstream programming languages, \n produces a newline character (ASCII 10, 0x0A) — a line feed that advances output to the next line. It is the standard line terminator on Unix-family systems, while Windows uses the two-character sequence \r\n (carriage return + line feed). This platform difference remains a persistent source of text-processing bugs when moving files between operating systems.

  • Algorithmic size variable: In computer science notation, 'n' is the conventional variable representing input size — O(n) for linear time, O(n²) for quadratic, O(n log n) for efficient sorting algorithms. This convention is pervasive in textbooks, technical interviews, and documentation, making 'n' a heavily overloaded single character in computational writing.

  • Printf %n format specifier: In C-family printf-style formatting, %n does not output text — instead it writes the number of characters printed so far to a pointer argument. This unusual behavior has made %n a well-documented attack vector in format string vulnerabilities, and many modern compilers and security policies disable or warn against its use.

  • Diacritical variants: ñ (tilde) is a distinct letter in the Spanish alphabet — not an accented variant of 'n' — representing the palatal nasal /ɲ/ and famously appearing in words like 'España' and 'año'. Beyond Spanish, ń (acute) is used in Polish, ň (caron) in Czech and Slovak, ņ (cedilla) in Latvian, and ṇ (dot below) in IAST transliteration of Sanskrit — giving 'n' a substantial diacritical family among consonants.

  • Newline escape sequence: In C-style strings and most mainstream programming languages, \n produces a newline character (ASCII 10, 0x0A) — a line feed that advances output to the next line. It is the standard line terminator on Unix-family systems, while Windows uses the two-character sequence \r\n (carriage return + line feed). This platform difference remains a persistent source of text-processing bugs when moving files between operating systems.

  • Algorithmic size variable: In computer science notation, 'n' is the conventional variable representing input size — O(n) for linear time, O(n²) for quadratic, O(n log n) for efficient sorting algorithms. This convention is pervasive in textbooks, technical interviews, and documentation, making 'n' a heavily overloaded single character in computational writing.

  • Printf %n format specifier: In C-family printf-style formatting, %n does not output text — instead it writes the number of characters printed so far to a pointer argument. This unusual behavior has made %n a well-documented attack vector in format string vulnerabilities, and many modern compilers and security policies disable or warn against its use.

  • Diacritical variants: ñ (tilde) is a distinct letter in the Spanish alphabet — not an accented variant of 'n' — representing the palatal nasal /ɲ/ and famously appearing in words like 'España' and 'año'. Beyond Spanish, ń (acute) is used in Polish, ň (caron) in Czech and Slovak, ņ (cedilla) in Latvian, and ṇ (dot below) in IAST transliteration of Sanskrit — giving 'n' a substantial diacritical family among consonants.

@workani&@alexluthor
Privacy & legal

Privacy

No accounts, no ads, no tracking cookies, and no cross-site tracking. The only analytics we keep are faceless — anonymous, aggregated counts of pages and searches, never tied to you. We store no IP addresses, set no tracking cookies, and build no profiles. Cloudflare hosts the site and handles requests for delivery and security.

Full privacy policy·Extension privacy·legal@asciify.dev

Attributions & licenses

Twemoji
© Twitter, Inc and other contributors · CC-BY 4.0
Noto Color Emoji
© Google · Apache 2.0
Fluent UI Emoji
© Microsoft · MIT
OpenMoji
© HfG Schwäbisch Gmünd · CC-BY-SA 4.0
Toss Face
© Viva Republica (Toss) · SIL OFL 1.1
JoyPixels
© JoyPixels Inc. · Free Limited Use License
SerenityOS Emoji
© The SerenityOS Developers · BSD-2-Clause
EmojiTwo
© EmojiTwo contributors · CC-BY 4.0
Apple Color Emoji
© Apple, Inc.
Facebook Emoji
© Meta Platforms, Inc.

Apple and Facebook emoji styles are proprietary and shown here solely for reference and comparison — a common-sense application of nominative-use / fair-use principles. asciify is not affiliated with, endorsed by, or sponsored by Apple, Inc., Meta Platforms, Inc., or any other rights holder listed above. If a rights holder requests removal of their emoji style from this site, it will be removed.

All other vendor emoji are reproduced for reference and comparison under their respective open licenses listed above.

Character names and code points from the Unicode® Standard. Unicode® and the Unicode Logo are registered trademarks of Unicode, Inc.

Privacy
© asciify.dev 2025-2026