taotaolin
V2EX  ›  问与答

VS2013 的编译器有个问题

  •  
  •   taotaolin · Apr 7, 2017 · 2005 views
    This topic created in 3355 days ago, the information mentioned may be changed or developed.
    printf("a++=%d,++a=%d,a++=%d ", a++, ++a, a++);
    

    当 a = 2 的时候。。这个式子的输出不是应该为 4 4 2 么。。 我用 VS2013 测试的时候输出是 4 5 2 。这个是为什么

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2411 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 16:09 · PVG 00:09 · LAX 09:09 · JFK 12:09
    ♥ Do have faith in what you're doing.