C - Design your own free( ) function
问题 Today, I appeared for an interview and the interviewer asked me this, Tell me the steps how will you design your own free( ) function for deallocate the allocated memory. How can it be more efficient than C's default free() function ? What can you conclude ? I was confused, couldn't think of the way to design. What do you think guys ? EDIT : Since we need to know about how malloc() works, can you tell me the steps to write our own malloc() function 回答1: That's actually a pretty vague question