Top

Discussion

What is the return type of malloc() or calloc()?

  • A.int *
  • B.int **
  • C.void *
  • D.void **

Answer: C

malloc() and calloc() return void *, without void * we may get warning in C if we don't type cast the return type to appropriate pointer.

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

Post your comment