3. Which of the following statements is true regarding, Auto Storage Class?
A. It is used to give a reference of a global variable that is visible to all program
files.
B. It instructs the compiler to keep a local variable in existence during the lifetime
of a program
C. It is the default storage class for all local variables.
D. It is used to define local variables that should be stored in a register.
Answers
Answer:
A it is used to give a reference
Answer:
The correct answer to this question is it is used to define local variables that should be stored in a register.
Explanation:
Given - Auto Storage Class.
To Find - Which of the following statements is true regarding, Auto Storage Class?
It is used to define local variables that should be stored in a register is true regarding, Auto Storage Class.
A variable with automatic storage can be explicitly declared using the auto storage class specifier. When a variable is declared inside of a block, the auto storage class is used by default. The period of automatic storage is applied to objects with the auto storage class specifier. Storage for auto objects declared in a block is made available each time it is entered. The items are no longer usable when the block is exited. Automatic storage duration applies to an object that is defined without a linkage declaration or a static storage class specifier.
#SPJ2