Giter VIP home page Giter VIP logo

cplusplusstudy's Introduction

CPlusPlusStudy

#C++ 基础知识:

1、在main执行之前和之后执行的代码可能是什么?

2、结构体内存对齐问题?

3、指针和引用的区别

4、堆和栈的区别

5、区别以下指针类型?

6、基类的虚函数表存放在内存的什么区,虚表指针vptr的初始化时间

7、new / delete 与 malloc / free的异同

8、new和delete是如何实现的?

9、malloc和new的区别?

10、宏定义和函数有何区别?

11、宏定义和typedef区别?

12、变量声明和定义区别?

13、哪几种情况必须用到初始化成员列表?

14、strlen和sizeof区别?

15、常量指针和指针常量区别?

16、a和&a有什么区别?

17、数组名和指针(这里为指向数组首元素的指针)区别?

18、野指针和悬空指针

19、迭代器失效的情况

20、C和C++的区别

21、C++与Java的区别

22、C++中struct和class的区别

23、define宏定义和const的区别

24、C++中const和static的作用

25、C++的顶层const和底层const

26、类的对象存储空间?

27、final和override关键字

28、拷贝初始化和直接初始化

29、初始化和赋值的区别

30、extern"C"的用法

31、模板函数和模板类的特例化

32、C和C++的类型安全

33、为什么析构函数一般写成虚函数

34、构造函数能否声明为虚函数或者纯虚函数,析构函数呢?

35、C++中的重载、重写(覆盖)和隐藏的区别

36、C++的多态如何实现

37、C++有哪几种的构造函数

38、浅拷贝和深拷贝的区别

39、内联函数和宏定义的区别

40、构造函数、析构函数、虚函数可否声明为内联函数

41、auto、decltype和decltype(auto)的用法

42、public,protected和private访问和继承权限/public/protected/private的区别?

43、如何用代码判断大小端存储

44、volatile、mutable和explicit关键字的用法

45、什么情况下会调用拷贝构造函数

46、C++中有几种类型的new

47、C++中NULL和nullptr区别

48、简要说明C++的内存分区

49、C++的异常处理的方法

cplusplusstudy's People

Contributors

aidansen avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.