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.
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
Updated