hi even i read all course about variable but i can't understand can some good people tell what is whats used....? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

hi even i read all course about variable but i can't understand can some good people tell what is whats used....?

30th Dec 2016, 8:43 PM
Aran Bekas
Aran Bekas - avatar
3 Respuestas
+ 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.
30th Dec 2016, 10:07 PM
André Santos
André Santos - avatar
+ 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.
30th Dec 2016, 10:02 PM
Ravishankar Chaubey
Ravishankar Chaubey - avatar
+ 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
13th Jul 2017, 12:22 AM
Antoine González Sandoval
Antoine González Sandoval - avatar