Senin, 16 Januari 2017

What is the use of the extern storage class in C programming

Storage classes define the longevity and scope of variables and functions. There are two types of storage classes: automatic and static. There are several storage class specifiers: auto: this is the default storage class specifier for variables defined inside a function. auto can be used only inside functions. Variables declared auto will automatically have their storage allocated on entry to a function and deallocated when the function exits. auto variables contain garbage until explicitly initialised. Use of auto is archaic and there is no need to use it. register: this storage class specifier can be used to indicate to the

The post What is the use of the extern storage class in C programming appeared first on Coding Security.


What is the use of the extern storage class in C programming
read more

Tidak ada komentar:

Posting Komentar