+ 1
hi even i read all course about variable but i can't understand can some good people tell what is whats used....?
3 Respostas
+ 8
A variable is basically a label/name that you put on data,
and by data I mean integers, floats, strings and chars,etc.,
to make that data more readable and understandable
to the code reader.
Think of variables like a type of container that holds information.
So then you can manipulate this variable in your programs as you want. It's easier and understandable, in fact, than
trying to manipulate the data itself.
+ 2
A "variable" gives us with named storage that our programs in order to manipulate it for result or requirement. Each variable in c++ has a specific type, which tells us about the size & layout of the variable's memory. The range of values that can be stored within that memory. The set of operations that we can perform on the variable.
+ 1
a variable is a store memory in your code, it save information and also the variable must be declared and With a name exemple INT(type of variable ) age ( name of variable) 26 (value of variable)
int age = 26
i hope help you