C语言要点总结
参考内容:
C运算符及优先级:https://www.runoob.com/cprogramming/c-operators.html
字符指针与字符数组真正的区别:https://blog.csdn.net/on_1y/article/details/13030439
C 结构体:https://www.runoob.com/cprogramming/c-structures.html
sizeof用法总结(个人感觉非常好的一篇文章):https://blog.csdn.net/jollyhope/article/details/1895357
sizeof:https://blog.csdn.net/weixin_40087851/article/details/82190289
C语言基础——sizeof的用法总结:https://blog.csdn.net/u013812502/article/details/81198452
进程的内存段篇:C/C++堆区、栈区、常量区、静态数据区、代码区详解:https://blog.csdn.net/better_eleven/article/details/90046566
C语言中的register关键字;https://blog.csdn.net/ccjoe/article/details/44756395
c语言中static关键字用法详解:https://blog.csdn.net/guotianqing/article/details/79828100(主要参考,文章写的很好)
栈区:https://blog.csdn.net/chen1083376511/article/details/79508251(关于栈,本篇写的非常详细)
静态数据成员和静态成员函数:https://blog.csdn.net/qiana_/article/details/82083313
C++(1)-一个进程在内存中的布局:https://www.cnblogs.com/TS-qrt/articles/cmemery.html(参考)
C++ 自由存储区是否等价于堆?:https://www.cnblogs.com/QG-whz/p/5060894.html
C++ 自由存储区是否等价于堆?:https://www.cnblogs.com/QG-whz/p/5060894.html(文章写的非常清晰透彻)
栈区,堆区,全局区,文字常量区,程序代码区 详解:https://blog.csdn.net/yitian20000/article/details/6358837
C++中NULL和nullptr的区别:https://blog.csdn.net/qq_18108083/article/details/84346655
史上最明白的 NULL、0、nullptr 区别分析(老师讲N篇都没讲明白的东东),今天终于明白了,如果和我一样以前不明白的可以好好的看看...:https://www.cnblogs.com/porter/p/3611718.html
条件编译#ifdef的妙用详解https://blog.csdn.net/wordwarwordwar/article/details/84932183
目录
1.常见集成开发环境(IDE/Integrated Development Environment )
7C/C++语言占用内存分区(1栈2堆3全局【静态】4文字常量区5程序代码区)
7.2.1自由存储区(Free store Segment)
7.3全局区(静态区)(Global data Segment)
0~3.4:C语言要点总结-数据类型及函数:https://blog.csdn.net/qq_41605114/article/details/104497331
3.5:C语言要点总结-指针:https://blog.csdn.net/qq_41605114/article/details/104497045
C语言要点总结-函数指针(回调函数) :https://blog.csdn.net/qq_41605114/article/details/104497861
3.6+3.7:C语言要点总结-复合结构和位域:https://blog.csdn.net/qq_41605114/article/details/104497112#%E2%91%A0%E6%97%A0tag
6:C语言要点总结-关键字总结:https://blog.csdn.net/qq_41605114/article/details/104497181
7:C语言要点总结-内存分区:https://blog.csdn.net/qq_41605114/article/details/104497275
5类型转化
从高到低,会损失精度,反之不会。
8C/C++中NULL和nullptr的区别:
该文章写的非常清楚,关于为什么C++11要加入nullptr这个关键字的原因,如果大家使用Qt5.11版本,就会发现,指针初始化及默认构造函数中指针赋值时,如果使用NULL或0程序会警告,因为NULL这个(void *)万能指针在重载函数时会问题,而nullpty在任意情况下都代表了空指针。
https://blog.csdn.net/qq_18108083/article/details/84346655
https://www.cnblogs.com/porter/p/3611718.html
其他内容:
i++;//先返回i的值,再加。因为要先返回一个值,所以需要一个临时变量来保存这个返回值,最终还要释放。
++i;//直接返回累加后的值
以上二者相比,++i效率更。