What is the difference between new/delete and malloc/free?
2011-08-20 17:11
579 查看
Malloc/free does not know about constructors and destructors. New and delete create and destroy objects, while malloc and free allocate and deallocate memory.
相关文章推荐
- C++ Memory Management : What is the difference between malloc/free and new/delete?
- The differences between new(delete) and malloc(free) in c/c++
- What is the difference between new and malloc()?
- Difference between new (delete) and malloc (free)
- What is the difference between << and += while injecting elements to Hash.new([])?
- C/C++ Basic-- the differs between [malloc&free] and [new &delete]
- In Linux, what is the difference between “buffers” and “cache” reported by the free command?
- What is the difference between netty(io.netty.*) and jboss netty(org.jboss.netty.*)
- What is the difference between a URI, a URL and a URN
- What is the difference between DHTML and the DOM?
- What is the difference between tag and branch-id?
- Multi-thread: What is the difference between OpenMP and MPI
- What is the difference between a pack slip and a pick slip?
- Java-What is the difference between <? super E> and <? extends E>?
- What is the Differences Between Sleep/Standby and Hibernate
- In SQL, what is the difference between a left join and a left outer join?
- What is the difference between authorized_key and known_host file for SSH
- Q: What is the difference between protocol stacks and profiles?蓝牙协议栈和profile的区别
- what is the difference between zImage (kernel) and boot.img
- What is the difference between Web Farm and Web Garden?