C++面试题

当前位置: 面试问题网 > C++面试题 > New delete 与malloc free 的联系与区别

New delete 与malloc free 的联系与区别

C++面试题  手机阅读
答案:都是在堆(heap)上进行动态的内存操作。用malloc函数需要指定内存分配的字节数并且不能初始化对象,new 会自动调用对象的构造函数。delete 会调用对象的destructor,而free 不会调用对象的destructor.

【New delete 与malloc free 的联系与区别】相关文章

1. New delete 与malloc free 的联系与区别

2. 软件测试LoadRunner面试题:What is correlation? Explain the difference between automatic correlation and manu

3. 软件测试LoadRunner面试题:What is the difference between standard log and extended log?

4. 软件测试LoadRunner面试题:What is the difference between Overlay graph and Correlate graph?

5. 软件测试LoadRunner面试题:If web server, database and Network are all fine where could be the problem?

6. What\'s the difference between deep copy and shallow copy? (深拷贝与浅拷贝有什么区别)

7. 简述你对Statement,PreparedStatement,CallableStatement的理解

8. 简述synchronized和java.util.concurrent.locks.Lock的异同

9. JSP和Servlet有哪些相同点和不同点,他们之间的联系是什么?

10. 什么是Connection-oriented Protocol/Connectionless Protocol面向连接的协议/无连接协议

本文来源:https://www.mianshiwenti.com/a13104.html

点击展开全部

《New delete 与malloc free 的联系与区别》

将本文的Word文档下载到电脑,方便收藏和打印

推荐程度:

进入下载页面
上一篇:利用指针变量实现队列的入队操作 下一篇:定义一结构体变量,用其表示点坐标,并输入两点坐标,求两点之间的距离

﹝New delete 与malloc free 的联系与区别﹞相关内容

「New delete 与malloc free 的联系与区别」相关专题

delete
复制网址 收藏网址 分享到微信 分享到微博 分享到QQ

其它栏目

软件工程师面试题 软件测试面试题 网络管理员面试题 java面试题 .NET面试题 PHP面试题 C#面试题 C++面试题 Delphi面试题 Ruby面试题 Python面试题 Javascript面试题 android面试题 iOS面试题 jQuery面试题 Linux/Unix面试题 DBA面试题

也许您还喜欢