Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

malloc() and free()

Name: Anonymous 2010-05-08 7:00

So I was reading a Sepples tutorial for experienced C users and that guy keeps telling me that new and delete are better than malloc and free.
Why? What's wrong with them?

Name: Anonymous 2010-05-08 18:58

>>23
Most people would include stdlib.h eventually and it would only be a problem if both these conditions are satisfied: 1)No stdlib.h included 2)sizeof(void*)!=sizeof(int) (not the case on x86) 3)ints store the sign in an unusual way.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List