C++ Foundation —— (03) Basic Data Types in C++14
»
    Year 2024, C++ compiler:

    char  1byte
    short 2bytes
    int 4bytes
    long not fixed, 4bytes or 8bytes, 8bytes in windows x64
    long long 8bytes
    float 4bytes
    double not fixed, 4bytes or 8bytes, 8bytes in windows x64
    long double 8bytes

    In 2024, the boundery on the market of CPU, is between 32bits and 64bits.
    So, the char, short, int has been confirmed be 1byte, 2bytes, 4bytes.

    Have you found the rule?
    During the alternation of 16bits and 32bits, the not fixed data type is int. So, there are short int, int and long int.
    During the alternation of 32bits and 64bits, the not fixed data type is long, So, there are long and long long.

    I'm so old and I'm so young that I'm sure I will need to be treated well.
«
--Alex.Zhang
--www.v-signon.com Learningers Co-Encouraged
Back
Personal Art: www.up-task.com Unit: Individual
中文 Русский 京ICP备19038994号-2
If the content on this website infringes upon your any rights, please contact me at 1307776259@qq.com for removal