Linker error and extern in c/c++


extern int k;
Tutorial answer:Linker error;Underfined symbol ‘_i’;
Debugger solution:Extern storage class in the following declaration
Extern int i;
Extern keyword refer to there memory their allocation in the some other program and there address is give to current prg.In these case linker detect any other variable of specify name i is persent in other it generate linker error

No comments:
Write comments