I am having a lot of issue using extern variable and header files. I have read through sections of books and searched the web for hours but I haven\'t been able to figure out. A
Move int gI = 0 outside main() so that it is globally available:
int gI = 0
main()
int gI = 0; int main() { int i; .... }