0
What is the use of"int" and what do it means in c++
4 Réponses
+ 4
when you use "int" in declaring any variable it means that the value of this variable will be an integer number that means number without (,)
EX: 1-2-3-4-5....etc
+ 1
"int " is used to declare the data type integer of the variable.so the compiler can understand what type of data stored under the variable
0
Define a variable of integer type.
e.g. I wanna define the variable: fingers.
How to define?
int fingers = 5;
0
int stands for integer.
Integer is a data type.
when you define an integer, you are telling the compiler you are going to use a value which will be a whole number, and it will allocate the memory space for that
what is integer: any whole number (Ex:0,+5,10, -17,-200)
what is not an integer: fractional or decimal component(Ex: 5/2.1.1117,6.78)