Storage Classes

Gapfill exercise

  
Enter your answers in the gaps. When you have entered all the answers, click on the "Check" button.
what is Automatic storage class?
Automatic variables are allocated memory automatically at .
1.The visibility of the variables is limited to the block in which they are defined.
2.The of the automatic variables is limited to the block in which they are defined.
3.The automatic variables are initialized to by default.
4.The assigned to automatic gets freed upon exiting from the block.
5.The used for defining automatic variables is auto.
6.Every local variable is automatic in C by .


what is Static storage class?
1.The variables defined as static specifier can hold their value between the function calls.
2. local variables are visible only to the function or the in which they are defined.
3.A same static variable can be declared many times but can be assigned at only one time.
4.Default initial value of the static variable is 0 otherwise .
5.The visibility of the static variable is limited to the file in which it has declared.
6.The used to define static variable is static.


what is Register storage class?
1.The variables defined as the register is allocated the memory into the CPU registers depending upon the size of the remaining in the CPU.
2.We can not dereference the register variables, i.e., we can not use &operator for the variable.
3.The access time of the register is faster than the variables.
4.The default value of the register local variables is 0.
5.The register keyword is used for the which should be stored in the CPU . However, it is compiler?s choice whether or not; the variables can be stored in the register.
6.We can store into the register, i.e., a register can store the of a variable.
7.Static variables can not be stored into the register since we can not use more than one specifier for the variable.


what is External storage class?
1.The external class is used to tell the compiler that the variable defined as extern is declared with an external linkage elsewhere in the program.
2.The declared as are not allocated any . It is only and intended to specify that the variable is declared elsewhere in the program.
3.The default initial value of external type is 0 otherwise .
4.We can only the extern variable globally, i.e., we can not initialize the external variable within any block or method.
5.An external variable can be declared many times but can be at only once.
6.If a is declared as external then the searches for that variable to be initialized somewhere in the program which may be extern or static. If it is not, then the compiler will show an error.