linux c获取long类型最大值

root@HK:~/document/svn/BLELock/ARM/source# gcc test.c
root@HK:~/document/svn/BLELock/ARM/source# ./a.out
8 9223372036854775807
root@HK:~/document/svn/BLELock/ARM/source# cat test.c
#include <stdio.h>
#include <limits.h>
void main()
{
    printf("%ld %ld\n", sizeof(long), LONG_MAX);
}


猜你喜欢

转载自blog.csdn.net/u013304850/article/details/77849976