Podcast
Questions and Answers
Which specifier is used to define a variable that can hold its value between multiple function calls?
Which specifier is used to define a variable that can hold its value between multiple function calls?
- External
- Auto
- Register
- Static (correct)
What is the initial default value of a static integral variable?
What is the initial default value of a static integral variable?
- Memory address
- 0 (correct)
- Garbage
- Null
Which storage class allows variables to be allocated memory in the CPU registers?
Which storage class allows variables to be allocated memory in the CPU registers?
- Register (correct)
- Static
- External
- Auto
What is the accessibility scope of a static global variable?
What is the accessibility scope of a static global variable?
Which keyword is used to define a static variable?
Which keyword is used to define a static variable?
What initialization is allowed for an external variable?
What initialization is allowed for an external variable?
Which storage specifier cannot be used for the same variable as register?
Which storage specifier cannot be used for the same variable as register?
'The initial default value of the register local variables is _.' Fill in the blank.
'The initial default value of the register local variables is _.' Fill in the blank.
'We can store pointers into the register.' - This statement refers to which type of variables?
'We can store pointers into the register.' - This statement refers to which type of variables?
What is the main difference between static and register variables?
What is the main difference between static and register variables?
Which storage specifier can store the address of a variable?
Which storage specifier can store the address of a variable?
In C programming, where is the visibility of a static global variable limited to?
In C programming, where is the visibility of a static global variable limited to?
What is the default initial value of a static integral variable if no value is explicitly assigned?
What is the default initial value of a static integral variable if no value is explicitly assigned?
Which storage class allows variables to be allocated memory into the CPU registers?
Which storage class allows variables to be allocated memory into the CPU registers?
What happens if we try to dereference a register variable in C programming?
What happens if we try to dereference a register variable in C programming?
Which keyword is used to indicate that a variable is declared with external linkage elsewhere in the program?
Which keyword is used to indicate that a variable is declared with external linkage elsewhere in the program?
Which type of variables cannot be stored into the CPU register due to already having a storage specifier?
Which type of variables cannot be stored into the CPU register due to already having a storage specifier?
'We can store pointers into the register.' - This statement refers to which type of variables?
'We can store pointers into the register.' - This statement refers to which type of variables?
Which of the following statements about static local variables is TRUE?
Which of the following statements about static local variables is TRUE?
Flashcards are hidden until you start studying