I wrote a c program with some global variables, and most functions use and modify those global variables. Then I decide to split this program into a c file and multiple header files. How do I deal with the global variables in the program?
Should I put them in the .c file? Or in the relevant .h files?
Thanks for helping!