Question

Which header file should be included to use function like malloc() and calloc()?

A memory.h
B stdlib.h
C string.h
D dos.h
Answer & Explanation
Option: [B]

The stdlib.h header file contains malloc(), calloc() and realloc() dynamically allocated array functions.

Advertisement
apsc cce prelims 2025