Complement output

Original link: http://www.cnblogs.com/mjorcen/p/3816695.html

 

 Complement output
# include <stdio.h>

int main(void)
{
//     int I = -5;
 //     the printf ( "% X-# \ n-", I);   // complement output

//    int j = 0xFFFFFFF5;
//    printf("%d\n", j);

    char ch = 0x80;
//    printf("%d\n", ch);

    ch = 129;// 1000 0000
    printf("%d\n", ch);

    return 0;
}

 

Reproduced in: https: //www.cnblogs.com/mjorcen/p/3816695.html

Guess you like

Origin blog.csdn.net/weixin_30515513/article/details/94784628