What does Main method returns in C#

A) String
B) Integer
C) Float
Explanation: Main returns either Nothing or int

Showing Answers 1 - 3 of 3 Answers

s

  • Feb 15th, 2006
 

string is not the right answer.

a main method can return only either a 'void' or 'int'. so, amongst the choices given, only B is correct.

  Was this answer useful?  Yes

Jimbobob

  • May 31st, 2006
 

oh my goodness, sisira's getting annoying...by default Main returns int, unless you change it to void. those are the only 2 things it'll return.s the answer is B of those answers given, but incomplete answer list.

  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