Pergunta de entrevista da empresa Apple

Aligned malloc to address and alignment

Resposta da entrevista

Sigiloso

8 de ago. de 2025

Align with larger malloc (required + alignment) and then move the returned ptr closer to the alignment if it is not NULL.