+ 2

What r variable s

2nd Feb 2018, 12:42 PM
Basit Mir
Basit Mir - avatar
2 Antworten
+ 5
For example: int x=6; 6 is assigned to variable x. cout<<x; //Output is 6
2nd Feb 2018, 1:34 PM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
+ 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.
2nd Feb 2018, 1:27 PM
Dread
Dread - avatar