📜  枚举函数 in - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:37.078000             🧑  作者: Mango

代码示例1
#include 
  
enum week{Mon, Tue, Wed, Thur, Fri, Sat, Sun}; 
  
int main() 
{ 
    enum week day; 
    day = Wed; 
    printf("%d",day); 
    return 0; 
}  
// OUTPUT
2