Sitting at ASCII code point 71 (0x47), uppercase 'G' is the seventh letter of the Latin alphabet and falls exactly 32 below its lowercase counterpart 'g' at 103 (0x67) — the standard single-bit case offset (bit 5) shared by all ASCII A–Z / a–z pairs. In typical English corpora, 'G' ranks as a moderately frequent uppercase consonant, boosted by common sentence-opening words like 'Go', 'Get', and 'God'. Historically, 'G' was a Roman invention — added to the Latin alphabet around the 3rd century BCE to distinguish the voiced velar stop /ɡ/ from /k/, which 'C' had previously covered for both.
// Size constants with G prefix#define GB (1024ULL * 1024 * 1024) // 1 GiB in bytessize_t memory = 4 * GB; // 4 GiB
Historical origin: Unlike most Latin letters inherited from Greek or Etruscan, 'G' was created specifically for Latin by Spurius Carvilius Ruga around 230 BCE. It was derived from 'C' with the addition of a distinguishing stroke, making it one of the few letters whose inventor is recorded by name in classical sources.
Typographic distinction: Uppercase 'G' is notable for its spur — a small horizontal bar or inward-pointing stroke at the midline of the open bowl. This feature varies significantly across typefaces: some designs use a full horizontal crossbar, others a short spur, and some modern sans-serifs omit it entirely, which can occasionally cause confusion with 'C' at small sizes.
Regex and programming contexts: In C-family printf-style formatting, '%G' formats floating-point numbers using the shorter of %E or %f notation, automatically stripping trailing zeros — the uppercase form forces the exponent indicator to 'E' rather than 'e'. In regular expressions, 'G' carries no special metacharacter meaning, though some engines support \G as an anchor matching the end of the previous match.
Diacritical variants: Uppercase 'G' serves as the base for several accented and modified forms — Ğ (breve) is a distinct letter in Turkish and Azerbaijani representing a lengthening of the preceding vowel, Ġ (dot above) is a separate letter in Maltese for the voiced affricate /dʒ/, and Ģ (cedilla) appears in Latvian representing a palatalized consonant. Ǧ (caron) is used in some transliteration systems for Arabic.
Historical origin: Unlike most Latin letters inherited from Greek or Etruscan, 'G' was created specifically for Latin by Spurius Carvilius Ruga around 230 BCE. It was derived from 'C' with the addition of a distinguishing stroke, making it one of the few letters whose inventor is recorded by name in classical sources.
Typographic distinction: Uppercase 'G' is notable for its spur — a small horizontal bar or inward-pointing stroke at the midline of the open bowl. This feature varies significantly across typefaces: some designs use a full horizontal crossbar, others a short spur, and some modern sans-serifs omit it entirely, which can occasionally cause confusion with 'C' at small sizes.
Regex and programming contexts: In C-family printf-style formatting, '%G' formats floating-point numbers using the shorter of %E or %f notation, automatically stripping trailing zeros — the uppercase form forces the exponent indicator to 'E' rather than 'e'. In regular expressions, 'G' carries no special metacharacter meaning, though some engines support \G as an anchor matching the end of the previous match.
Diacritical variants: Uppercase 'G' serves as the base for several accented and modified forms — Ğ (breve) is a distinct letter in Turkish and Azerbaijani representing a lengthening of the preceding vowel, Ġ (dot above) is a separate letter in Maltese for the voiced affricate /dʒ/, and Ģ (cedilla) appears in Latvian representing a palatalized consonant. Ǧ (caron) is used in some transliteration systems for Arabic.