Why does main return a value of type int?
I'm not going to get into the reasons why the main function return a value of type int here. (That is a topic for a more advanced course.)
Suffice it to say that this requirement manifests itself in two ways in Listing 1: