For an interview question: how would I write new “malloc” and “free” functions? I don’t think “using new and delete” would be an acceptable answer or using something similar like LocalAlloc/HeapAlloc
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since this is for an interview question, it probably won’t have a “right” answer, and they’re more interested in your thought process, and your general knowledge surrounding the topic.
You should ask to clarify the requirements, or give a range of answers depending on the situation. Here are some issues to consider: