I'm still pretty new to this but i've been learning quite a bit but don't understand the difference of a .h and .c files what are the difference and how you know when to use them.
.h* are used for declarations (functions, classes, globals, constants, etc.). .c* are used for definitions (i.e. implementations).
For example, for the function sum: