Hello people.
How dangerous it is to use global/external variables?
Suppose I have several ".c" and ".h" files in a project. This struct is defined:
Now, I want to read and modify both elements from different not-linked functions from different .c files?Code:struct example { char *element_A; char *element_B; };
Is to define this struct like a global variable the best solution?
Thanks in advance.