| 1. |
Difference between calloc() and malloc()
|
||||||||
|
Answer:
Option (b) |
| 2. |
Which function reallocates memory?
|
||||||||
|
Answer:
Option (a) |
| 3. |
Which of the following header files must necessarily be included to use dynamic memory allocation functions?
|
||||||||
|
Answer:
Option (a) |
| 4. |
What is correct about malloc() function?
|
||||||||
|
Answer:
Option (d) |
| 5. |
The number of arguments taken as input which allocating memory dynamically using malloc() is _______
|
||||||||
|
Answer:
Option (b) |
| 6. |
Which of the following statement is correct for the malloc() function in C?
|
||||||||
|
Answer:
Option (d) |
| 7. |
Suppose we have a one-dimensional array, named ‘x’, which contains 10 integers. Which of the following is the correct way to allocate memory dynamically to the array ‘x’ using malloc()?
|
||||||||
|
Answer:
Option (d) |
| 8. |
What is the output?
void main()
|
||||||||
|
Answer:
Option (a) |
| 9. |
What is the output?
void main()
|
||||||||
|
Answer:
Option (b) |
| 10. |
Which function is used to delete the allocated memory space?
|
||||||||
|
Answer:
Option (b) |