G-Fact 10

枚举型常量 ( enum 值)始终为 int 在C中,它们在C++中是不同类型的,并且可能具有不同于C++的大小。 int .

null

资料来源: https://www.geeksforgeeks.org/enumeration-enum-c/ http://en.wikipedia.org/wiki/Compatibility_of_C_and_C%2B%2B

© 版权声明
THE END
喜欢就支持一下吧
点赞15 分享