what is the use of “int col=1” at the line no. 12 in the program? i am not getting the purpose of it because it is written with the “int” why do we need to write int with this?
Please explain. i am not getting it
int is data type of variable col
int col=1;
here we initialize it with 1
in c++ to use a variable first we have to declare it
for declaration we have to specifiy the data type like int, float ,char etc…