枚举型常量 ( 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