Skip to main content

C-language

Symbols Overloading in C

Have you ever observed that in C Programming, Many symbols are overloaded with more than one meaning? They convey different meanings when used in different contexts.

The symbols like static, extern, void, *, & change their meaning depending on where they appear. Here, we are going to discuss a few of these symbols in detail.

Static Keyword

The static keyword when used along with a variable inside a function retains its value across multiple calls. The variable gets the memory at compile time and remains in memory throughout the execution of the program.

The same static keyword when used at a function level restricts the variable's visibility to the file only.

Extern Keyword