Re:Harder programming questions do a worse job of predicting...
by Retra on Monday February 18, 2019 @03:17PM
(#19194004)
If I were asked that, I would say something like "malloc attempts to allocate some memory on the heap and return a pointer to it." If pressed for more details, I would say it depends on the allocator and that we should look at the documentation for it to find out.
If that was an unacceptable answer, then I'd consider the interview a waste of time.
If that was an unacceptable answer, then I'd consider the interview a waste of time.