Modules
For example, if we have powers.c
, we can make powers.h
:
#ifndef POWERS_H
#define POWERS_H
int square(int num);
int cube(int num);
int quartic(int num);
int quintic(int num);
#endif
Including in the main program is a bit different
#include <stdio.h>
#include "powers.h"