The extern storage class specifies that the variable is declared in some part of the program. Generally this storage class is used to refer global variables in a program. Note that extern variables cannot be initialized. The scope of a extern variable is throughout the entire program and the lifetime is until the program completes its execution. In a multi-file program, a global variable in one file can be accessed from another file by using the storage class extern. Syntax for declaring a externvariable is as shown below: static The static storage class can be applied to both local variables
The post What is the extern storage class in C Programming appeared first on Coding Security.
What is the extern storage class in C Programming
read more
Tidak ada komentar:
Posting Komentar