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

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). 

主站蜘蛛池模板: 蒙自县| 中牟县| 兴安县| 衡阳县| 德江县| 精河县| 外汇| 遂昌县| 福州市| 武夷山市| 乌审旗| 杭锦旗| 宁明县| 舞钢市| 沈阳市| 平山县| 陆良县| 河池市| 凤台县| 宝山区| 楚雄市| 铁岭市| 兴仁县| 嫩江县| 库尔勒市| 丽江市| 潍坊市| 兴义市| 营口市| 惠东县| 墨竹工卡县| 普格县| 永宁县| 长阳| 虎林市| 浦城县| 甘肃省| 古交市| 太仆寺旗| 都昌县| 乐至县|