0
Why main() can't return any value?
main() method
2 Answers
+ 1
need more information to answer your question C, C++, other?
+ 1
The main function can return an int on most systems. However the return value should always be 0 unless your program encountered an error. Unfortunately you can't do anything other than that because the operating system only expects void or an integer.