taotaolin
V2EX  ›  问与答

VS2013 的编译器有个问题

  •  
  •   taotaolin · Apr 7, 2017 · 2052 views
    This topic created in 3380 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   ·   1018 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 22:12 · PVG 06:12 · LAX 15:12 · JFK 18:12
    ♥ Do have faith in what you're doing.