// // playExtern.c // // // Created by Ying Li on 2/23/20. // #include "playExtern.h" // This is where the extern variable is defined (i.e. given its value) int gblA = 3; // gives initial value to the global variable. global lifetime void printExternVal () { extern int glbB; glbB = 5; printf("pe: Callee gblA %d at address: %p \n", gblA, &gblA); } // potential question to ask: where is an extern var stored? is it stored in the stack with the local vars?