ECE 209
Program Template #2 – Single File, Main + Functions
This template is suitable for a one-file C program with main() plus additional functions.
/* Program Header:
Brief description of program. Author and date.
*/
#include
int main() {
return EXIT_SUCCESS; }
If printf or scanf is used.
For EXIT_SUCCESS.
Function declarations (also known as ¡°prototypes¡±)
Declaration of global variables (only if necessary — use sparingly)
Declaration of variables
Statements to implement program
Function definitions