- extern keyword is a declaration of value which is defined somewhere else.
- In the following code, we assume there is a definition of var in somefile.h, then this piece of code will run successfully
#include "somefile.h"
extern int var;
int main(void)
{
var = 10;
return 0;
}