// CSE 374 22sp lecture 8 // Example of declaration-before-use issues // include declarations of printf, etc. #include // Forward declaration so function is declared before first use. // return x^2 int square(int n); int main(int argc, char** argv) { int x = 10; int y = square(x); printf("%d^2 = %d\n", x, y); } // Actual function definition int square(int x) { return x*x; }