Storage Class - Study Mode
[#1] Which of the following is not a storage class in C?
Correct Answer
(B) struct
Explanation
Solution: A storage class defines the scope (visibility) and life-time of variables and/or functions within a C Program. These specifiers precede the type that they modify. There are the following storage classes, which can be used in a C Program auto register static extern
[#2] The storage class controls
Correct Answer
Life time of a variable.
[#3] When a function is recursively called all the automatic variables are stored in a
Correct Answer
(A) Stack
[#4] What does the "auto" specifier do?
Correct Answer
(B) It indicates that a variable’s memory will automatically be preserved
Explanation
Solution: Auto is a automatic storage class. The purpose of auto is it indicates that a variable’s memory will automatically be preserved.
[#5] How is a variable accessed from another file?
Correct Answer
(A) The global variable is referenced via the extern specifier.