What are the incompatible differences between C(99) and C++(11)?

后端 未结 4 571
失恋的感觉
失恋的感觉 2020-12-04 09:04

This question was triggered by replie(s) to a post by Herb Sutter where he explained MS\'s decision to not support/make a C99 compiler but just go with the C(99) features th

4条回答
  •  一生所求
    2020-12-04 09:43

    In C++, setting one member of a union and accessing the value of a different member is undefined behavior, whereas it's not undefined in C99.

    There are lots of other differences listed on the wikipedia page.

提交回复
热议问题