Re:C Questions and Answers
by foogoespop on Wednesday March 04, 2015 @04:22PM
(#9147453)
The first one would appear when using global variables which are shared across files, you just wouldn't see it as the pieces would usually be in separate files.
Something like:
/* file.h */
int global_i;
and you have:
/* file.c */
int global_i = 0;
Then if file.c includes file.h both will be in the same file during compilation.
Something like:
and you have: Then if file.c includes file.h both will be in the same file during compilation.