Posted On: Feb 22, 2018
All variables declared within a function are auto by default. The extent of a variable is defined by its scope. Variables declared auto can only be accessed only within the function or the nested block within which they are declared. They are created when the block is entered into and destroyed when it is exited. i.e., memory is allocated automatically upon entry to a block and freed automatically upon exit from the block and note that default value is a garbage value.
Never Miss an Articles from us.
C defines another class of variables called static variables. Static variables are of two types:Static variables tha..
The scope resolution operator (::) is useful in C programming when both global and local variables have the same name,..
C language allows the use of the prefix register in primitive variable declarations. Such variables are called register..