C Literals Tutorial C July 20, 2026 What is Literals in C? 1. C Boolean Literals Example: C Boolean Literals 2. C Integer Literals Example: C Integer Literal – Octal literals (Base 8) Example: octal literal (base 8) – Hexadecimal literals (Base 16) Example: hexadecimal literal (base 16) 3. C Floating-point Literals Example: C floating-point literals 4. C Character Literals Example: C character literals 5. C String literals Example: C String literals Get the next C tutorials in your inbox. We publish new C tutorials most days. One email a week with the latest — no spam, unsubscribe anytime. Subscribe ← Previous variables Next → data-types