C# Literals Tutorial C# May 17, 2026 What is Literals in C#? 1. C# Boolean Literals Example: C# Boolean Literals 2. C# Integer Literals Example: C# Integer Literals – Octal literals (Base 8) Example: Octal literals (Base 8) – Hexadecimal literals (Base 16) Example: Hexadecimal literals (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 C# Variables Tutorial Next → C# data types Tutorial