Top

Discussion

Among 4 header files, which should be included to use the memory allocation functions like malloc(), calloc(), realloc() and free()?

  • A.#include<string.h>
  • B.#include<stdlib.h>
  • C.#include<memory.h>
  • D.Both b and c

Answer: B

#include is a header filer, which contains the inbuilt functions for all memory allocation functions.

No comment is present. Be the first to comment.
Loading…

Post your comment