what difference at var and int? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

what difference at var and int?

what difference at var and int?

14th Jan 2022, 11:10 AM
Beary
Beary - avatar
3 Answers
+ 5
Before that, try to find some similarities between them
14th Jan 2022, 11:17 AM
Simba
Simba - avatar
+ 3
Bones There is no var in C and C++. int is a data type which stores numeric data like int a = 8;
14th Jan 2022, 12:38 PM
A͢J
A͢J - avatar
+ 1
Int would be a whole number. Ex: 15. Var is used to create a ‘general’ variable that works with all variable types.
15th Jan 2022, 8:16 PM
SENTI3NT
SENTI3NT - avatar