---
title: "What is literals and their types?"  
description: "What is literals and their types?"  
author: "Sumit Kesarwani"  
published: 2013-11-13  
updated: 2020-09-18  
canonical: https://www.mindstick.com/interview/1823/what-is-literals-and-their-types  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# What is literals and their types?

Literals are value constants assigned to variables in a program. C# supports several types of literals are

- Integer literals
- Real literals
- Boolean literals
- Single character literals
- String literals
- Backslash character literals

## Answers

### Answer by Sumit Kesarwani

Literals are value constants assigned to variables in a program. C# supports several types of literals are

- Integer literals
- Real literals
- Boolean literals
- Single character literals
- String literals
- Backslash character literals


---

Original Source: https://www.mindstick.com/interview/1823/what-is-literals-and-their-types

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
