/*
* program to demonstrate multifile C programs
*
* almmost exactly the same as a.c, but glob defined here
*
* the global glob is defined here
*
* Matt Bishop, ECS 36A
* -- June 4, 2024 original version
*/
#include "abr.h"
int glob; /* a global; value set in br.c
int main(void)
{
b(); /* assignes a value to globn; defined in b.c */
/* print the result */
printf("%d\n", glob);
/* done! */
return(0);
}
|
ECS 36A, Programming & Problem Solving Version of April 2, 2024 at 12:13PM
|
You can get the raw source code here. |