Niyuj interview question

What is the return type of malloc () function?

Interview Answers

Anonymous

16 Aug 2019

Void pointer

Anonymous

21 Dec 2020

malloc means "memory allocation" malloc function is used to dynamically create a memory block, it allocates a memory block of size specified in bytes (as a parameter). It returns a pointer to the beginning of that block.