码迷,mamicode.com
首页 > 其他好文 > 详细

max_int和-1

时间:2018-01-25 20:44:31      阅读:140      评论:0      收藏:0      [点我收藏+]

标签:include   span   gpo   sign   sig   clu   []   argc   bsp   

#include <stdio.h>                      
int main(int argc, char *argv[])        
{                                       
    unsigned int umax=~0;               
    if(umax == -1)                      
        printf("umax:%u == -1\n",umax); 
    if((unsigned)4294967295 == -1)      
        printf("wow \n");               
                                        
                                        
    return 0;                           
}                                       

 

max_int和-1

标签:include   span   gpo   sign   sig   clu   []   argc   bsp   

原文地址:https://www.cnblogs.com/litifeng/p/8352879.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!