|
|
|
Good news: there is an easier way to declare global variables which I will dicuss next
|
Example:
|
Even though the global variable x is defined and declared in the program file p1.c, there is no error as long as the declaration and definition do not conflict.
The same is true for the global variable y in the program file p2.c
|
|