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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -