+ 1

what is integers related to myvariables?

i changed int myVariables = 10; cout << myVariables; to int only = 10; cout << only; it still run... why we used myVariables if it can still run with other character?

9th Aug 2017, 10:41 PM
Jay Flores
Jay Flores - avatar
1 ответ
+ 3
A variable is a placeholder for a value. You could name it "abcdefg" or "SoloLearnIs Cool" and it would still work. The courses use myVariables so it can be easier to understand. If you used a variable named "age" for someone's name it wouldn't make sense now would it?
9th Aug 2017, 10:56 PM
MemeSenpai
MemeSenpai - avatar