Qualcomm Interview Question

what is malloc?

Interview Answer

Anonymous

Jan 12, 2021

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