/* This program is so common that most all C++ compilers
   compile it without problem.  Yet it contains non-standard
   syntax.  What's the problem.
*/

#include <ostream.h>
void main()
{
    cout << "Hello world!\n";
}

/* Hint: What is the exit code returned to the operating system? */

/* Answer: According to C++ standard function main returns an int.  
   It is not a void function.  A void function returns a random
   exit code to the operating system instead of EXIT_SUCCESS (0).
*/
