COMPUTER FUNDAMENTALS

COMPUTER SOFTWARE

PROGRAMMING LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
There are ____ storage classes in C
A
2
B
4
C
6
D
8
Explanation: 

Detailed explanation-1: -Automatic Storage Class. External Storage Class. Static Storage Class. Register Storage Class.

Detailed explanation-2: -Auto is the default storage class for all local variables.

Detailed explanation-3: -A storage class specifier is used to refine the declaration of a variable, a function, and parameters. Storage classes determine whether: The object has internal, external, or no linkage. The object is to be stored in memory or in a register, if available.

Detailed explanation-4: -The static storage class instructs the compiler to keep a local variable in existence during the life-time of the program instead of creating and destroying it each time it comes into and goes out of scope. Therefore, making local variables static allows them to maintain their values between function calls.

There is 1 question to complete.