UC3M

Telematic/Audiovisual Syst./Communication Syst. Engineering

Systems Architecture

September 2017 - January 2018

14.6.  Code in several files

The compiler may generate an executable with code divided among multiple files. One necessary condition is that there must be only one definition of the main function. Take the source code of the program and place each function in a separated file (e.g. main.c, file1.c, file2.c). Compile all three files simultaneously with the -Wall option and modify the code to remove the warnings. In which files does the line #include <stdio.h> need to be replicated?