热门面试题与答案和在线测试
面向面试准备、在线测试、教程与实战练习的学习平台

通过聚焦学习路径、模拟测试和面试实战内容持续提升技能。

WithoutBook 将分主题面试题、在线练习测试、教程和对比指南整合到一个响应式学习空间中。

面试准备

模拟考试

设为首页

收藏此页面

订阅邮箱地址

C++ 面试题与答案

Test your skills through the online practice test: C++ Quiz Online Practice Test

相关差异对比

C vs C++Java vs C++

问题 66. What are the differences between a C++ struct and C++ class?


The default member and base-class access specifier are different.

这有帮助吗? 添加评论 查看评论
 

问题 67. How many ways are there to initialize an int with a constant?


Two.
There are two formats for initializers in C++ as shown in the example that follows. The first format uses the traditional C notation. The second format uses constructor notation.
int foo = 123;
int bar (123);

这有帮助吗? 添加评论 查看评论
 

问题 68. How does throwing and catching exceptions differ from using setjmp and longjmp?


The throw operation calls the destructors for automatic objects instantiated since entry to the try block.

这有帮助吗? 添加评论 查看评论
 

问题 69. What is a default constructor?


Default constructor WITH arguments class B { public: B (int m = 0) : n (m) {} int n; }; int main(int argc, char *argv[]) { B b; return 0; }

这有帮助吗? 添加评论 查看评论
 

问题 70. What is a conversion constructor?


A constructor that accepts one argument of a different type.

这有帮助吗? 添加评论 查看评论
 

用户评价最有帮助的内容:

版权所有 © 2026,WithoutBook。