PS C:\Source>gcc sumVersion9.c sumDriver9.c PS C:\Source>a sum of 1..10: 55 sum of 1..5: 15 PS C:\Source>
Comments:
The two files are separately compiled (even though listed in just once gcc command) and
the objects are linked together.
The function name sumInts
is an external so the linker can do this.
A prototype is needed in sumDriver9.c
so the compiler knows how
to call the function.
The parameter name in the prototype can be different from the one used in
the function definition.