No, I was thinking of this:
Code:
#include <stdio.h>
int add(int, int);
float snitt(float, float, float);
main () {
blah-blah;
}
int add(int x, int y) {
return x+y;
}
float snitt(float v, float w, float z) {
return (v+w+z)/3;
}
That is, use a function prototype for the int method appearing after main also, even though it's not necessary. It makes no difference, but I thought maybe it was more tidy. Or maybe not. Kind of the same way as it's tidy to declare all variables before initializing/using them.