+ 1
What is the difference between the two types of int
You declare a program with int main() But you can define a variable as an integer int a What's the difference
2 Réponses
+ 6
main() is a *function* of return type int in which your program is executed.
a (as in your example) is an integer *variable*.
+ 1
int main just means that the return type of the whole program is in integer, hence why return 0; is at the end of all programs