View Single Post
  #10 (permalink)  
Old 07-08-2007, 10:23 AM
Konr Konr is offline
Novice
Join Date: Jul 2007
Posts: 10
iTrader: (0)
Konr is on a distinguished road
Quote:
Originally Posted by HelloWorld View Post
Would the compiler return some kind of an exception if we don't put int return value in the main method?
Well, it depends on which compiler you are using. If you want to know for sure for any given compiler, do it and see what happens. Some will refuse to compile, some will give you a warning but compile anyway, some will compile without mentioning that you've coded against the standard. Needless to say, a compiler that doesn't tell you when you're making mistakes and compiles around it is not something to wish for.

An 'exception' occurs during run-time. Your compiler will give you errors or warnings.

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
The Following User Says Thank You to Konr For This Useful Post:
HelloWorld (07-08-2007)