c/c++语言开发共享自增运算符

输出结果 Tips 没能解决这个问题,不同的编译器会产生不同的输出结果。 …

// //  main.c //  c自增运算符 // //  created by mac on 2019/4/9. //  copyright © 2019年 mac. all rights reserved. //  #include <stdio.h>  int main(int argc, const char * argv[]) {     int count=1;     count++;     count=5;     int i=8;     int y,b=3;     y=(++b)+(b++);//8     printf("%dn",y);     printf("%d %d %d %d %dn",--i,i--,i,i++,++i);     //printf("%dn",i++);     return 0; } 

输出结果

8 7 7 6 6 8 program ended with exit code: 0

tips

  • 没能解决这个问题,不同的编译器会产生不同的输出结果。

本文来自网络收集,不代表计算机技术网立场,如涉及侵权请联系管理员删除。

ctvol管理联系方式QQ:251552304

本文章地址:https://www.ctvol.com/c-cdevelopment/604333.html

(0)
上一篇 2021年5月12日
下一篇 2021年5月12日

精彩推荐