Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

C++ SizeOf

    cout << "The sizeof(char) is " << sizeof(char) << " byte/s" << endl;
    cout << "The sizeof(short) is " << sizeof(short) << " byte/s" << endl;
    cout << "The sizeof(int) is " << sizeof(int) << " byte/s" << endl;
    cout << "The sizeof(long) is " << sizeof(long) << " byte/s" << endl;
    cout << "The sizeof(long long) is " << sizeof(long long) << " byte/s" << endl;
    cout << "The sizeof(float) is " << sizeof(float) << " byte/s" << endl;
    cout << "The sizeof(double) is " << sizeof(double) << " byte/s" << endl;
    cout << "The sizeof(long double) is " << sizeof(long double) << " byte/s" << endl;
    cout << "The sizeof(bool) is " << sizeof(bool) << " byte/s" << endl;
 
PREVIOUS NEXT
Tagged: #SizeOf
ADD COMMENT
Topic
Name
8+3 =