+ 7
main() is a function that returns an integer. That's why its declared like int main() just as any other integer function
20th Apr 2017, 3:40 PM
Dinmukhamed Mailibay
Dinmukhamed Mailibay - avatar
+ 4
int is the return type of the function main. There are other return type or data type in c++ like float, double, char, string, book etc.
20th Apr 2017, 3:40 PM
Karan Vaity
Karan Vaity - avatar