Extern โ€“ C and C++ Extern Keyword Function Tutorial

1 ยท freeCodeCamp.org ยท April 21, 2022, 3:23 a.m.
The extern keyword in C and C++ extends the visibility of variables and functions across multiple source files. In the case of functions, the extern keyword is used implicitly. But with variables, you have to use the keyword explicitly. I believe a simple code example can explain things better...