#include "stdafx.h"
#include<iostream>
using namespace std;
int main()
{
printf("%d",INT_MAX);
printf("\n%d\n",INT_MIN);
return 0;
}
晚上看书,看到C99标准支持的新类型,突然想到,C语言中要查看int等类型的最大值该如何查看呢?后来才想起来,其实C中是提供了相应的支持的,这里将代码贴出来,以便将来查看。
#include "stdafx.h"
#include<iostream>
using namespace std;
int main()
{
printf("%d",INT_MAX);
printf("\n%d\n",INT_MIN);
return 0;
}
晚上看书,看到C99标准支持的新类型,突然想到,C语言中要查看int等类型的最大值该如何查看呢?后来才想起来,其实C中是提供了相应的支持的,这里将代码贴出来,以便将来查看。