Is it legal to have duplicate enum values in C?

后端 未结 2 827
梦毁少年i
梦毁少年i 2021-01-07 18:22
enum protocol {
    ascii_prot = 3, /* arbitrary value. */
    binary_prot,
    negotiating_prot = 4 /* Discovering the protocol */
};

Both b

2条回答
提交回复
热议问题