C Programming > Memory Allocation
1.
Which header file should be included to use functions like malloc() and calloc()?
A. memory.h
B. stdlib.h
C. string.h
D. dos.h
Answer: Option B
2.
What function should be used to free the memory allocated by calloc() ?
A. dealloc();
B. malloc(variable_name, 0)
C. free();
D. memalloc(variable_name, 0)
Answer: Option C