In a C book I own called Beggining with C by rob house, he writes main like this in a program:
The book was published in 1995 and even though it is old all the programs work and he gives some sound tips on how to move onto C++ afterwards.Code:#include stdio.h>
main()
{
printf("I am the best, my number is %d", 7);
return 0;
}
Anyway, was main written like above standard back then? Even though it says that, I still use int main() {} in all my C programs. Why did he not use int main?