say you have a source file named sum.c that looks like this:
#include "sum.h"
int sum(int x, int y) {
return x+y;
}
What's the point of including method's header in it's own definition file? Aren't you supposed to include it only in source files that call the sum function?
This way you avoid possible problems if the definitions in the header and in the source files differ.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With