+ 2
What r variable s
2 Respostas
+ 5
For example:
int x=6;
6 is assigned to variable x.
cout<<x;
//Output is 6
+ 3
Variables are value names that store data within them.
So, let's say you declare the variable "age" and assign 18 to it.
The variable age holds the value 18.