小编ss_*_*s_t的帖子

printf中的多个赋值语句c

任何人都可以帮助我理解下面的代码输出:

int main()
{
    int a=35;
    printf("%d %d %d %d %d",a--,a,a=20,a++,a=39);
    return 0;
}
Run Code Online (Sandbox Code Playgroud)

产量:20 19 19 39 19

赞赏如何在printf函数中的c中处理(编译)赋值.

c compiler-construction printf

1
推荐指数
1
解决办法
604
查看次数

标签 统计

c ×1

compiler-construction ×1

printf ×1