/** * Example of using of global variables in c * The memory address of gi is always the same * * @author gtowell * Created: March 2021 * **/ #include int gi = 5; void t() { printf("TF %d %d\n", gi, &gi); gi = 7; printf("TF2 %d %d\n", gi, &gi); return; } int main(void) { printf("TM %d %d\n", gi, &gi); t(); printf("TM2 %d %d\n", gi, &gi); }