Are there types bigger than long long int in C++?

前端 未结 9 777
遥遥无期
遥遥无期 2020-12-08 13:18

Are there types bigger than long long int in C++?

My compiler is g++.

9条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-08 13:49

    If you know your number is always going to be positive, you can extend the scope of an int by labeling it as unsigned

    int myNum; // Range is from –2,147,483,648 to 2,147,483,647

    unsigned int myNum; // Range is from 0 to 4,294,967,295

提交回复
热议问题