c语言 int 有无符号的min max值

来源:互联网 发布:网络打印机的安装 编辑:程序博客网 时间:2024/06/05 02:00
#include <stdio.h>#include <limitS.h>/* run this program using the console pauser or add your own getch, system("pause") or input loop */int main(int argc, char *argv[]) {    printf("unsigned int max=%u\n",UINT_MAX);    printf("signed int max=%d\n",INT_MAX);        printf("signed int min=%d\n",INT_MIN);    return 0;}

0 0
原创粉丝点击