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