初学者的困惑,编译出错了.
#include <stdio.h> /* For command line input and output */#include <limits.h> /* For limits on integer types */
#include <float.h> /* For limits on floating-point types */
int main(void)
{
printf("Variables of type char store values from %d to %d",
CHAR_MIN, CHAR_MAX);
printf("\nVariables of type unsigned char store values from 0 to %u",
UCHAR_MAX);
printf("\nVariables of type short store values from %d to %d",
SHRT_MIN, SHRT_MAX);
printf("\nVariables of type unsigned short store values from 0 to %u",
USHRT_MAX);
printf("\nVariables of type int store values from %d to %d", INT_MIN,
INT_MAX);
printf("\nVariables of type unsigned int store values from 0 to %u",
UINT_MAX);
printf("\nVariables of type long store values from %ld to %ld",
LONG_MIN, LONG_MAX);
printf("\nVariables of type unsigned long store values from 0 to %lu",
ULONG_MAX);
printf("\nVariables of type long long store values from %lld to %lld",
LLONG_MIN, LLONG_MAX);
printf("\nVariables of type unsigned long long store values from 0 to %llu",
ULLONG_MAX);
}
编译时出现错误:没有声明标示符:‘LLONG_MIN’'LLONG_MAX' 'ULLONG_MAX'。我是跟着书本敲的代码.