+ 3
What is the main difference in main() and void main()?
3 ответов
+ 3
yeah ... i wanted to know that if we do not use void function... then what happens
+ 4
It's all about return type.
main() return int by default.
void main doesn't return any value out of main() function.
+ 2
If you don't put a void or any data type before it .
Depending on the c standard which is used compiler will either replace the empty main as int main or it will show a error asking u to change the main to int main.Depends on the ....c standards