Void or Int
Is it a better practice to use void main() more often instead of int main() ?
In latest C++ standards, main() must return int so void main() isn't really an option.
int main(). void main() might not even work for all compilers. It's also a standard for C, so there's really no point in getting into the habbit of making it void.
Thank you guys I got it cleared.
int for usual
Good practicies: int main returns 0 which informs us that program ran successfully ^^ void main returns nothing so we cannot acknowledge if program had error during runtime or not (assuming the error log is off)
Always use int main