Confusion about the output

前端 未结 4 1110
挽巷
挽巷 2021-01-25 10:05
#include
int main(void)
{
    int i=1,j=-1;
    if((printf(\"%d\",i))<(printf(\"%d\",j)))
        printf(\"%d\",i);
    else 
        printf(\"%d\",j);         


        
4条回答
  •  有刺的猬
    2021-01-25 10:44

    I think it is rather obvious: '1' is one character, '-1' is two. One is less than two.

提交回复
热议问题