View Single Post
  #9   Report Post  
Posted to rec.crafts.metalworking
Nick Müller
 
Posts: n/a
Default Anyone hear of helloworld?

Mark Rand wrote:

There is missing an "int" in front of "main()".


Since there's no explicit return, it could be a void :-)


No, it _is_ "int main". int can't be left out. "void main" is invalid.
Also, as he did make a "return 0", the compiler should complain twice.
And going on nitpicking: The "return 0" can be left out. main is the
only function where this is true.


Nick
--
Motor Modelle // Engine Models
http://www.motor-manufaktur.de
DIY-DRO // Eigenbau-Digitalanzeige
http://www.yadro.de