Variables in C++
What is a Variable?
A variable is a container used to store data in a program.
Example
int age = 20;
Rules for Variables
- Must start with letter or underscore
- Cannot use keywords
- Case-sensitive
A variable is a container used to store data in a program.