#Mastery09<\/a><\/p>\n Hey there! in this post we are going to talk about fundamental types in C++.<\/p>\n Any value we use in our code, requieres a space in the computers memory. What the computer need to know to run the program correctly is how much space need the value and how to read it.<\/p>\n Here is a table with the fundamental types used in C++. The most common used are char, float,<\/strong><\/em> <\/strong>(signed) int<\/strong> double <\/strong><\/em>(float), bool <\/strong><\/em>and void.<\/em><\/strong><\/p>\n Check it, and I hope it helps you.<\/p>\n <\/p>\n #Mastery09Hey there! in this post we are going to talk about fundamental types in C++.Any value we use in our code, requieres a space in the computers memory. What the computer need to know to run the program correctly is how much space need t… Continue reading \n\n
\n Group<\/th>\n Type names*<\/th>\n Notes on size \/ precision<\/th>\n<\/tr>\n \n Character types<\/td>\n char<\/strong><\/code><\/td>\nExactly one byte in size. At least 8 bits.<\/td>\n<\/tr>\n \n char16_t<\/strong><\/code><\/td>\nNot smaller than char<\/code>. At least 16 bits.<\/td>\n<\/tr>\n\n char32_t<\/strong><\/code><\/td>\nNot smaller than char16_t<\/code>. At least 32 bits.<\/td>\n<\/tr>\n\n wchar_t<\/strong><\/code><\/td>\nCan represent the largest supported character set.<\/td>\n<\/tr>\n \n Integer types (signed)<\/td>\n signed char<\/strong><\/code><\/td>\nSame size as char<\/code>. At least 8 bits.<\/td>\n<\/tr>\n\n signed<\/em> short<\/strong> int<\/em><\/code><\/td>\nNot smaller than char<\/code>. At least 16 bits.<\/td>\n<\/tr>\n\n signed<\/em> int<\/strong><\/code><\/td>\nNot smaller than short<\/code>. At least 16 bits.<\/td>\n<\/tr>\n\n signed<\/em> long<\/strong> int<\/em><\/code><\/td>\nNot smaller than int<\/code>. At least 32 bits.<\/td>\n<\/tr>\n\n signed<\/em> long long<\/strong> int<\/em><\/code><\/td>\nNot smaller than long<\/code>. At least 64 bits.<\/td>\n<\/tr>\n\n Integer types (unsigned)<\/td>\n unsigned char<\/strong><\/code><\/td>\n(same size as their signed counterparts)<\/td>\n<\/tr>\n \n unsigned short<\/strong> int<\/em><\/code><\/td>\n<\/tr>\n\n unsigned<\/strong> int<\/em><\/code><\/td>\n<\/tr>\n\n unsigned long<\/strong> int<\/em><\/code><\/td>\n<\/tr>\n\n unsigned long long<\/strong> int<\/em><\/code><\/td>\n<\/tr>\n\n Floating-point types<\/td>\n float<\/strong><\/code><\/td>\n <\/td>\n<\/tr>\n \n double<\/strong><\/code><\/td>\nPrecision not less than float<\/code><\/td>\n<\/tr>\n\n long double<\/strong><\/code><\/td>\nPrecision not less than double<\/code><\/td>\n<\/tr>\n\n Boolean type<\/td>\n bool<\/strong><\/code><\/td>\n <\/td>\n<\/tr>\n \n Void type<\/td>\n void<\/strong><\/code><\/td>\nno storage<\/td>\n<\/tr>\n \n Null pointer<\/td>\n decltype(nullptr)<\/strong><\/code><\/td>\n <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"