Pulling triple grammatical duty in English — marking plurals (cats), possessives (cat's), and third-person verb forms (runs) — lowercase 's' is the nineteenth letter of the Latin alphabet and one of the most frequent consonants, accounting for roughly 6.3 % of characters in typical English corpora. Its ASCII code point is 115 (0x73), 32 above its uppercase counterpart 'S' at 83 (0x53), maintaining the single-bit case offset (bit 5) shared by all ASCII A–Z / a–z pairs.
// %s format specifier for stringschar *name = "Alice";printf("Hello, %s!\n", name); // Hello, Alice!printf("%-10s|", name); // Left-align: 'Alice |'
String format specifier: In C-family printf-style formatting, %s formats a null-terminated string argument — likely the most frequently reached-for format token in practice. The same syntax appears in Python 2 string formatting, Go's fmt package, Ruby, and Perl, though buffer handling, encoding, and nil/null behavior vary across implementations.
Regex whitespace and dotall flag: The shorthand \s typically matches whitespace characters (space, tab, newline, and similar) in most regex engines, with \S matching non-whitespace. Separately, the 's' flag (re.DOTALL in Python, /s in Perl and PCRE) changes the . metacharacter to match newline characters as well — two distinct uses of 's' in regex contexts that are occasionally confused.
Voiced and voiceless alternation: In English, 's' alternates between voiceless /s/ (sit, pass) and voiced /z/ (dogs, is, was) depending on phonetic environment — a pattern largely invisible to native speakers but significant in phonetics, speech synthesis, and second-language instruction where the two sounds must be explicitly distinguished.
Diacritical variants: š (caron) is a distinct letter across Slavic languages including Czech, Slovak, and Slovenian; ş (cedilla) appears in Turkish and Romanian; ś (acute) is standard in Polish; and ṣ (dot below) is used in IAST transliteration of Sanskrit. The German ß (eszett), historically a ligature of long s and z, is now classified as a separate letter — related to 's' etymologically but occupying its own Unicode code point (U+00DF).
String format specifier: In C-family printf-style formatting, %s formats a null-terminated string argument — likely the most frequently reached-for format token in practice. The same syntax appears in Python 2 string formatting, Go's fmt package, Ruby, and Perl, though buffer handling, encoding, and nil/null behavior vary across implementations.
Regex whitespace and dotall flag: The shorthand \s typically matches whitespace characters (space, tab, newline, and similar) in most regex engines, with \S matching non-whitespace. Separately, the 's' flag (re.DOTALL in Python, /s in Perl and PCRE) changes the . metacharacter to match newline characters as well — two distinct uses of 's' in regex contexts that are occasionally confused.
Voiced and voiceless alternation: In English, 's' alternates between voiceless /s/ (sit, pass) and voiced /z/ (dogs, is, was) depending on phonetic environment — a pattern largely invisible to native speakers but significant in phonetics, speech synthesis, and second-language instruction where the two sounds must be explicitly distinguished.
Diacritical variants: š (caron) is a distinct letter across Slavic languages including Czech, Slovak, and Slovenian; ş (cedilla) appears in Turkish and Romanian; ś (acute) is standard in Polish; and ṣ (dot below) is used in IAST transliteration of Sanskrit. The German ß (eszett), historically a ligature of long s and z, is now classified as a separate letter — related to 's' etymologically but occupying its own Unicode code point (U+00DF).