# Variable

*noun*

say it: **“VAIR-ee-uh-bul”** **/ˈvɛriəbəl/**

A named place in a C# program that holds one value of a set type, which the program can read and change.

## What is **Variable** in C#?

**Variable** — A named place that stores a value a program can use or change.

```csharp
class Game
{
    void UpdateScore()
    {
        int score = 10;
        score = score + 5;
    }
}
```

## In a sentence

- “I kept the running total in a **variable** called total and added each price to it.”

Level: Novice · [More C# terms at this level](https://www.ask-codey.com/glossary?category=c-sharp&level=1)

Updated: November 9, 2026

## In other subjects

- [Variable in Java](https://www.ask-codey.com/glossary/variable-java)
- [Variable in JavaScript](https://www.ask-codey.com/glossary/variable-javascript)
- [Variable in Python](https://www.ask-codey.com/glossary/variable)

Source: https://www.ask-codey.com/glossary/variable-c-sharp
