Pregunta de entrevista de Apple

Aligned malloc to address and alignment

Respuesta de la entrevista

Anónimo

8 ago 2025

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