Podcast
Questions and Answers
What is the default initial value of an automatic integral variable?
What is the default initial value of an automatic integral variable?
- 1
- 0 (correct)
- null
- garbage
Which storage class allows variables to retain their value between multiple function calls?
Which storage class allows variables to retain their value between multiple function calls?
- Automatic
- External
- Static (correct)
- Register
What is a limitation of using the register keyword in C?
What is a limitation of using the register keyword in C?
- Register variables cannot store pointers (correct)
- Register variables cannot be initialized
- & operator cannot be used with register variables
- Register variables are slower than automatic variables
In C, where is the visibility of a static global variable restricted to?
In C, where is the visibility of a static global variable restricted to?
What does the 'extern' storage class indicate to the compiler?
What does the 'extern' storage class indicate to the compiler?
What happens when you attempt to dereference a register variable in C?
What happens when you attempt to dereference a register variable in C?
How many times can an external variable be initialized in C?
How many times can an external variable be initialized in C?
Which type of variables have faster access time than automatic variables?
Which type of variables have faster access time than automatic variables?
'static' keyword in C is used to define which type of variables?
'static' keyword in C is used to define which type of variables?
In C, what can't be done to a static variable once it's declared?
In C, what can't be done to a static variable once it's declared?