Top

Discussion

Which of the following statement is correct prototype of the malloc() function in c ?

  • A.int* malloc(int);
  • B.Char* malloc(char);
  • C.unsigned int* malloc(unsigned int);
  • D.void* malloc(size_t);

Answer: D

 

By defalut for malloc() function return type is void.

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

Post your comment