Minor edit - declared the return value of Main() as int. I would assume this is an undefined behavior and is not a gauranteed default for all compilers.