Domanda di colloquio di Apple

Aligned malloc to address and alignment

Risposta di colloquio

Anonimo

8 ago 2025

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