What is the return type of a program's main() method

A program's main() method has a void return type.

Showing Answers 1 - 6 of 6 Answers

sampra

  • Feb 13th, 2008
 

default return typ of any any main method is int but we change it as per requirment if return typ is other than void then must write return stmt

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions