1. True or False: extern and static (when applied to a local variable) storage c
ID: 3694096 • Letter: 1
Question
1. True or False: extern and static (when applied to a local variable) storage classes can affect the storage duration of a variable.
2. What is the value of enumeration constant "SOUTH", in the following declaration:
enum { NORTH, EAST, SOUTH, WEST };
3. True or False: An enumeration constant may represent any integer specified by the programmer.
4. True or False: All constants in an enumeration must have different values.
5. What is the value of enumeration constant "SPADES", in the following declaration:
enum { DIAMONDS = 5, HEARTS, CLUBS, SPADES };
6. Which storage class is used primarily to indicate that a variable or function can be shared by several files? Auto, Extern, Register or Static?
Explanation / Answer
1. True
Because storage duration and linkage are affected by using storage class specifiers like extern or static.
2. The value of SOUTH is 180
3. True
An enumeration constant can represent any integer specified that means the int type can be negative also
4. True
Because the enumeration set contains duplicate constant values
5. The value of SPADES is 5
6.Extern
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.