End of the program

The end of the main function and the end of the program is shown in Listing 3.

Listing 3. End of the program.
  //Block and wait until the user presses a key.

  return 0;//Return 0 to indicate a successful run.
}//end main function

Nothing new in Listing 3.