114k views
2 votes
What is a variable in programming?

User Hoornet
by
8.8k points

1 Answer

4 votes
In programming, a variable is like a labeled box where we can put different values. It has a name and can hold information that can change as the program runs. We can assign values to variables, update them when needed, and use them in calculations. Variables help us store and work with data in our programs, making them flexible and adaptable to different situations.
User Jatinder
by
6.9k points

No related questions found