填空题:枚举类型元素值的赋值与输出
阅读程序,写出程序的运行结果:
#include <stdio.h>
int main()
{
enum weekday {sum,mon=3,tue,wed,thu};
enum weekday workday;
workday=wed;
printf("%d",workday);
return 0;
}
//程序的运行结果是:
answer:
第1空:5 ||
#include <stdio.h>
int main()
{
enum weekday {sum,mon=3,tue,wed,thu};
enum weekday workday;
workday=wed;
printf("%d",workday);
return 0;
}
//程序的运行结果是:
answer:
第1空:5 ||