forked from jaege/Cpp-Primer-5th-Exercises
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path4.28.cpp
17 lines (15 loc) · 735 Bytes
/
4.28.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <iostream>
int main() {
std::cout << "char " << sizeof(char) << std::endl;
std::cout << "wchar_t " << sizeof(wchar_t) << std::endl;
std::cout << "char16_t " << sizeof(char16_t) << std::endl;
std::cout << "char32_t " << sizeof(char32_t) << std::endl;
std::cout << "short " << sizeof(short) << std::endl;
std::cout << "int " << sizeof(int) << std::endl;
std::cout << "long " << sizeof(long) << std::endl;
std::cout << "long long " << sizeof(long long) << std::endl;
std::cout << "float " << sizeof(float) << std::endl;
std::cout << "double " << sizeof(double) << std::endl;
std::cout << "long double " << sizeof(long double) << std::endl;
return 0;
}