Question 1 of 25
Hints left: 3
Q1
Which function is used to allocate an array of elements in C?
Q2
What does the "auto" specifier do?
Q3
What is the purpose of the 'free' function in C?
Q4
Which function is used to change the size of an allocated block of memory in C?
Q5
In C, which header file should be included to use dynamic memory allocation functions?
Q6
What is the default value of an uninitialized 'static' variable in C?
Q7
How do you release dynamically allocated memory in C?
Q8
How do you check if the 'malloc' function has successfully allocated memory in C?
Q9
What does the 'calloc' function in C do?
Q10
Which of the following is not a storage class in C?
Q11
When a function is recursively called all the automatic variables are stored in a
Q12
What is the main purpose of the 'volatile' storage class in C?
Q13
What is the purpose of the 'malloc' function in C?
Q14
In which storage class is a variable's memory allocated on the stack?
Q15
In which storage class are variables typically stored in the heap memory?
Q16
What is a memory leak in C?
Q17
The storage class controls
Q18
What is the return value of the 'realloc' function if it fails to reallocate memory?
Q19
How is a variable accessed from another file?
Q20
Which function is used to copy a block of memory in C?
Q21
What is the return value of the 'malloc' function if it fails to allocate memory?
Q22
What is the storage duration of a variable with 'static' storage class?
Q23
Which function is used to return the number of bytes allocated by 'malloc'?
Q24
What is the purpose of the 'memset' function in C?
Q25
Which storage class can help improve execution speed by allowing variables to be stored in CPU registers?