About

I am too Lazy to update about me.

Role

Alma Mater:

Not updated.

Experience:

Not updated.

No Notifications so far .......!!!

ranita's picture
Ranita Biswas
VYAKHYA SHRIVASTAVA
14956

In  C  program, a variable or function can be declared so many times but it can be defined only once. int a=5; and extern int a=10;  is not allowed here.

more less

Linker Error : Undefined symbol 'i'

The statement extern int i specifies to the compiler that the memory for 'i' is allocated in some other program and that address will be given to the current program at the time of linking. But linker finds that no other variable of name 'i' is available in any other program with memory space allocated for it. Hence a linker error has occurred.

 
more less