//////////////////////////////////////////////////////////////////// // // Program Lec06a.c // Description // Shows defined functions in different files // // // // ///////////////////////////////////////////////////////////////////// #include int glob; // A global variable (not initialized (:( int foo (int); // These are function prototypes. int bar (int); // We are telling the compiler they are defined somewhere // either further on down or in another file. main ( ) // Main line function { // Calls helper functions and reports results int n = 0; int f; int b; f = foo (n); b = bar (n); printf ("\n n=%d, f=%d, b=%d", n, f, b); printf ("\n glob = %d", glob); }