Niyuj Interview Question

What is the return type of malloc () function?

Interview Answers

Anonymous

Aug 16, 2019

Void pointer

Anonymous

Dec 21, 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.