-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy path4_3.cpp
16 lines (16 loc) · 884 Bytes
/
4_3.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <iostream>
using namespace std;
int main()
{
cout << "char is " << sizeof(char) << " bytes long" << endl;
cout << "unsigned char is " << sizeof(unsigned char) << " bytes long" << endl;
cout << "short is " << sizeof(short) << " bytes long" << endl;
cout << "unsigned short is " << sizeof(unsigned short) << " bytes long" << endl;
cout << "unsigned int is " << sizeof(unsigned int) << " bytes long" << endl;
cout << "unsigned is " << sizeof(unsigned) << " bytes long" << endl;
cout << "unsigned long is " << sizeof(unsigned long) << " bytes long" << endl;
cout << "long is " << sizeof(long) << " bytes long" << endl;
cout << "float is " << sizeof(float) << " bytes long" << endl;
cout << "double is " << sizeof(double) << " bytes long" << endl;
cout << "long double is " << sizeof(long double) << " bytes long" << endl;
}