Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*The data types of C++/C (C) 2017*/
- #include <iostream>
- #include <cstdio>
- #include <string>
- using namespace std;
- int main() {
- cout<<"The size of int is: "<<sizeof(int)<<endl;
- cout<<"The size of unsigned int is: "<<sizeof(unsigned int)<< endl;
- cout<<"The size of long long int is: "<< sizeof(long long int)<<endl;
- cout<<"The size of float is: "<<sizeof(float)<<endl;
- cout<<"The size of unsigned char: "<<sizeof(unsigned char)<<endl;
- cout<<"The size of signed int: "<<sizeof(signed int)<<endl;
- cout<<"The size of const int: "<<sizeof(const int)<< endl;
- cout<<"The size of double: "<<sizeof(double)<<endl;
- cout<<"The size of bool: "<<sizeof(bool)<<endl;
- cout<<"The size of long double: "<<sizeof(long double)<<endl;
- cout<<"The size of short int: "<<sizeof(short int)<<endl;
- cout<<"The size of long int: "<<sizeof(long int)<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement