NVIDIA interview question

using malloc, implement malloc16 which returns addresses that are multiples of 16.

Interview Answer

Anonymous

Feb 27, 2025

allocating extra space and then checking the remainder of the allocated address to return the new address shifted to a 16 multiple