EXTERN Variable in C - 1

Опубликовано: 14 Февраль 2026
на канале: focal point
226
5

The extern keyword declares that a variable or a function has external linkage outside of the file it is declared.

When a variable is declared, the compiler requires that the variable be defined elsewhere. The declaration informs the compiler that a variable by that name and type exists, but the compiler does not need to allocate memory for it since it is allocated elsewhere. The extern keyword means "declare without defining"

#GATE_2021, #GATE , #GATE_PREPARATION , #focalpoint , #gateexam, #gate_cs , #focalpoint , #gateexam , #gate_cse