boot2

Playing with the boostrap
git clone https://git.ryansepassi.com/git/boot2.git
Log | Files | Refs | README

095-fwd-fn-decl.c (240B)


      1 /* Forward function declaration (prototype) before definition. */
      2 
      3 int forward_then_call(int);
      4 
      5 int main(int argc, char **argv) {
      6     if (forward_then_call(5) != 25) return 1;
      7     return 0;
      8 }
      9 
     10 int forward_then_call(int x) { return x * x; }