Syntax for the global main function

See Listing 2.

The body of the method is surrounded by a matching pair of curly braces.  (You will learn later that this constitutes a block of code.)

The header or signature for the main function in C++ can be written in different formats.

The format shown in Listing 2, which returns a value of type int and takes no incoming parameters, is one of those formats.  Note in particular: