官术网_书友最值得收藏!

Summary

In this chapter, we reviewed the different integer types (and briefly reviewed the floating point types) that are provided by C and C++ for system programming. We started with a discussion on the default types provided by C and C++ and the pros and cons associated with these types, including the common int type, explaining what it is, and how it is used. Next, we discussed the standard integer types provided by stdint.h and how they address some of the issues with the default types. Finally, we concluded this chapter with a discussion on structure packing and the issues associated with type conversions and optimizations that the compiler can make in different scenarios. 

In the next chapter, we will cover changes made by C++17, a C++ specific technique called Resource Acquisition Is Initialization (RAII) and provide an overview of the Guideline Support Library (GSL). 

主站蜘蛛池模板: 泰安市| 保亭| 临城县| 滁州市| 景洪市| 紫金县| 三明市| 华阴市| 乌拉特中旗| 开原市| 重庆市| 苍溪县| 隆德县| 桦川县| 邯郸县| 正蓝旗| 新绛县| 吕梁市| 辽宁省| 界首市| 安龙县| 陆良县| 灵璧县| 云林县| 津市市| 金门县| 丽水市| 沈阳市| 张掖市| 凤台县| 澄城县| 赣榆县| 调兵山市| 辽源市| 句容市| 湛江市| 临湘市| 普格县| 抚宁县| 昌平区| 张家港市|