c++基本数据类型
#include<iostream>#include<climits>
using namespace std;
//c plus plus
/*
内置整型
unsigned long ,long,unsigned int,int,unsigned short,short,char,unsigned char,signed char,bool
cpp 11新增整型
unsigned long long,long long
内置浮点类型:
float ,double, long double
*/
int main(void) {
cout << sizeof(int)<<"\n";
const int number = 123;
cout << number << endl;
cout << ULLONG_MAX << endl;
return 0;
}
文档来源:51CTO技术博客https://blog.51cto.com/u_15302296/3072267
页:
[1]