Notes on global variables in C

Any variable declared outside of *all* functions have a global scope and can be accessed from within any function within the program. So the variables in the following example are global.

Outputs

Leave a Reply

Your email address will not be published. Required fields are marked *