c - Difference between "void main" and "int main -
this question has answer here:
- what should main() return in c , c++? 18 answers
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
Post a Comment