0

Possible Duplicate:
What is the difference between new/delete and malloc/free?

It is not about difference of "... new calls constructor and malloc does not...". Simplificated, OS has its memory map with flags for each block saying is it free or not. Does 'malloc' and 'new' refer only to this table or they have such table (translated to OS table) for them only? Saying "for them only" means "separate table for each of 'malloc' and 'new'".

Thanks in advance sorry for bad English.

Community
  • 1
  • 1
Sergey Kanaev
  • 560
  • 5
  • 17
  • 1
    One question per question please. See: http://stackoverflow.com/faq – Paul R Sep 04 '12 at 21:30
  • Don't worry, we'll take care of that. Don't forget to check whether a question has already been asked. When you ask one question at a time, SO will suggest possible duplicates which should help. – John Watts Sep 04 '12 at 21:45
  • @John Watts Yeah. The link you gave is just what I was lloking for. Conclusion - I should do more comprehensive search next time. Thanks. – Sergey Kanaev Sep 04 '12 at 21:49
  • You're welcome. We are all here to learn. – John Watts Sep 04 '12 at 23:30

0 Answers0