Question 1 of 25
Hints left: 3
Q1
Which storage class allocates memory and retains its value between function calls?
Q2
Which storage class should be used for a variable that should be accessed quickly and frequently?
Q3
In which storage class is the variable's storage duration throughout the program's execution?
Q4
What is the significance of the 'extern' storage class?
Q5
In which storage class is the variable's storage duration limited to the function where it's declared?
Q6
What is the storage duration of a variable with 'auto' storage class?
Q7
Which storage class is used to define variables that are not initialized to any default value?
Q8
scanf() is a predefined function in. . . . . . . .header file.
Q9
What is the primary purpose of the 'static' storage class?
Q10
What happens when you declare a variable with the 'extern' storage class in a C source file?
Q11
Which storage class can only be used for local variables?
Q12
What storage class is typically used for function definitions in header files?
Q13
What is the primary difference between 'auto' and 'register' storage classes?
Q14
In which storage class are variables allocated memory in the data segment of the program's memory?
Q15
What storage class is used for function parameters in C by default?
Q16
Which storage class is often used for variables with block scope within functions?
Q17
What storage class should be used for a variable that needs to be shared across multiple source files?
Q18
Which storage class specifies automatic storage duration?
Q19
What is the primary advantage of using 'register' storage class for variables?
Q20
Which storage class is used for local variables?
Q21
When does a 'register' storage class make sense to use?
Q22
What is the default storage class for global variables?
Q23
What is the maximum scope of a variable with 'static' storage class?
Q24
When is memory allocated for a 'static' variable in C?
Q25
Which storage class is used for function arguments by default?