---
title: "What is variable in c#?"  
description: "What is variable in c#?"  
author: "Pradeep kumar Patel"  
published: 2019-10-23  
updated: 2019-10-23  
canonical: https://answers.mindstick.com/qa/82392/what-is-variable-in-c-sharp  
category: "programming language"  
tags: ["c#", ".net programming"]  
reading_time: 1 minute  

---

# What is variable in c#?

what is [variable](https://www.mindstick.com/articles/1807/objective-c-data-types-variables-object-creation) in c#?

## Answers

### Answer by Pradeep kumar Patel

A variable is a name given to a memory. It is used to store data. Its value can be changed and it can be reused many times. It is a way to represent memory location through symbol so that it can be easily identified. Type of variable **Boolean type:** it is store True or false type value **Integer type:** it is store int, byte, and short, long type value **Float type:** it is store float and double type value **Nullable type**: it is store Nullable type value **Decimal type:** it is store decimal type value **Example:**

```
double f;
decinal d;
int i, j;
bool b;
```

\


---

Original Source: https://answers.mindstick.com/qa/82392/what-is-variable-in-c-sharp

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
