// CSE 374 22sp lecture 8
// Example of declaration-before-use issues

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

// Function defined (and declared) before first use
// (but we don't always want to organize our code based
// strictly on what-calls-what)

// return x^2
int square(int x) {
  return x*x;
}

int main(int argc, char** argv) {
  int x = 10;
  int y = square(x);
  printf("%d^2 = %d\n", x, y);
}