Closing the Latin alphabet as its twenty-sixth and final letter, lowercase 'z' appears in roughly 0.07 % of characters in typical English corpora — making it one of the least frequently used letters alongside 'q' and 'x'. In American English it is called 'zee', while British, Canadian, Australian, and most other English-speaking traditions use 'zed', a divergence traceable to competing 17th-century pronunciations. In ASCII it occupies code point 122 (0x7A), positioned 32 above its uppercase counterpart 'Z' at 90 (0x5A), maintaining the single-bit case offset (bit 5) shared by all ASCII A–Z / a–z pairs.
// Check if character is lowercasebool isLowerAlpha(char c) {return c >= 'a' && c <= 'z'; // 97-122}// 3D coordinatesstruct Point3D { int x, y, z; };
Printf length modifier: In C99 and later standards, 'z' serves as a length modifier for the size_t and ssize_t types — %zu formats an unsigned size_t, %zd a signed ssize_t. This modifier ensures portable formatting of sizes and counts on both 32-bit and 64-bit platforms, where size_t may be 4 or 8 bytes respectively. Prior to C99, programmers often resorted to casting or non-portable alternatives.
Regex end-of-string anchor: In Perl, PCRE, and Ruby, \z matches the absolute end of the string, unaffected by multiline mode — distinct from $ which may match before a final newline or at each line end depending on flags. The related \Z (uppercase) matches either at the end of the string or before a trailing newline. These anchors are engine-specific and not available in all regex flavors.
Phonetic variation across languages: English 'z' represents the voiced alveolar sibilant /z/ (zoo, maze), but the same letter yields quite different sounds elsewhere — German uses it for the voiceless affricate /ts/ (Zeit, Zug), Italian for both /ts/ and /dz/ depending on the word, and Castilian Spanish maps it to the voiceless dental fricative /θ/ (zapato). This makes 'z' one of the more phonetically variable consonants across European languages.
Diacritical variants: Polish distinguishes two modified forms — ź (acute) for the palatalized fricative /ʑ/ and ż (dot above) for the retroflex /ʐ/. Czech, Slovak, Slovenian, and the Baltic languages use ž (caron) for /ʒ/, treating it as a distinct letter in their alphabets. In transliteration of Semitic languages, ẓ (dot below) represents emphatic consonants in Arabic and Hebrew. This gives 'z' a moderately rich diacritical family despite its rarity in English text.
Printf length modifier: In C99 and later standards, 'z' serves as a length modifier for the size_t and ssize_t types — %zu formats an unsigned size_t, %zd a signed ssize_t. This modifier ensures portable formatting of sizes and counts on both 32-bit and 64-bit platforms, where size_t may be 4 or 8 bytes respectively. Prior to C99, programmers often resorted to casting or non-portable alternatives.
Regex end-of-string anchor: In Perl, PCRE, and Ruby, \z matches the absolute end of the string, unaffected by multiline mode — distinct from $ which may match before a final newline or at each line end depending on flags. The related \Z (uppercase) matches either at the end of the string or before a trailing newline. These anchors are engine-specific and not available in all regex flavors.
Phonetic variation across languages: English 'z' represents the voiced alveolar sibilant /z/ (zoo, maze), but the same letter yields quite different sounds elsewhere — German uses it for the voiceless affricate /ts/ (Zeit, Zug), Italian for both /ts/ and /dz/ depending on the word, and Castilian Spanish maps it to the voiceless dental fricative /θ/ (zapato). This makes 'z' one of the more phonetically variable consonants across European languages.
Diacritical variants: Polish distinguishes two modified forms — ź (acute) for the palatalized fricative /ʑ/ and ż (dot above) for the retroflex /ʐ/. Czech, Slovak, Slovenian, and the Baltic languages use ž (caron) for /ʒ/, treating it as a distinct letter in their alphabets. In transliteration of Semitic languages, ẓ (dot below) represents emphatic consonants in Arabic and Hebrew. This gives 'z' a moderately rich diacritical family despite its rarity in English text.