c - Difference between "void main" and "int main -


this question has answer here:

i study c both textbooks , websites. somewhere sample codes begin program execution "void main" , somewhere begin function "int main". what's difference, really? both give same result. there makes them different? if so, please mention "void" does, , "int" does.

the int main() , void main() same, process main process of program.

void main() means functions main() not return value.

the difference int main() right way of calling it, since every program, when called, returns "error message" os interprets, in case, closing program return 0; tells process calling program ended without problem.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -