Top

Discussion

Which of the following is/are true

  • A.calloc() allocates the memory and also initializes the allocates memory to zero, while memory allocated using malloc() has random data.
  • B.malloc() and memset() can be used to get the same effect as calloc()
  • C.Both malloc() and calloc() return 'void *' pointer
  • D.All of the above

Answer: D

None

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

Post your comment