// CSE 374 15au lecture 8
// Example of declaration-before-use issues

// include declarations of printf, etc.
#include <stdio.h>

// Forward declaration so function is declared before first use.

int square(int);

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;
}