Question: what is the return type of function main?
Answer: main function return type is integer by default. ... When return type is integer ,you have to include "return 0" statement at the end . This line returns zero to the operating system at the end of the program. If we specified return type as void,then no need to write return 0 at the end.