gpt4 book ai didi

c - 在 C 中有重复的枚举值是否合法?

转载 作者:太空狗 更新时间:2023-10-29 16:29:12 25 4
gpt4 key购买 nike

enum protocol {
ascii_prot = 3, /* arbitrary value. */
binary_prot,
negotiating_prot = 4 /* Discovering the protocol */
};

binary_protnegotiating_prot 都等于 4 吗?

最佳答案

是的。

关于c - 在 C 中有重复的枚举值是否合法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5561142/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com