Qualcomm interview question

what is malloc?

Interview Answer

Anonymous

12 Jan 2021

Memory allocation function to allocate heap memory and it returns a void pointer to the request memory. Syntax - int *p = malloc(sizeof(*p));