0
What is the difference in using void main() and int main() functions??
just wanted to know this basic thing
3 Réponses
0
void main(), states that the main function will return nothing in the end of execution.
int main(), states that the main function will return an integer value in the end of execution. Therefore you've to write "return 0;" in the end where 0 is an integer. If you don't, the program will return any garbage int value in the end.