C# Literals Tutorial

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