单项选择题

以下对枚举类型名的定义中正确的是( )。

A.enum a=one,two,three;
B.enum aone=9,two=-1.three=200;
C.enum a="one","two","four";
D.enum a"nine","two","three";
<上一题 目录 下一题>
热门 试题

单项选择题
下面程序的输出结果是( )。 # include <stdio.h> int x=1; void main() int x=2; printf( %d, ,x); if(x==1) int x=4; printf( %d, ,x++); printf( %d ,x++);
A.2,2
B.1,1,2
C.2,4,3
D.2,3
单项选择题
若有如下程序: sub(int a,int b,int c) c=a+b; return(c); main() int x=3,y=4,z=6; sub(x,y,z); printf('%d”,z); 则程序运行后的输出结果是( )。
A.3
B.6
C.7
D.4
相关试题
  • 以下程序从终端读入数据到数组中,统计其中...
  • 下面程序的功能是求整数m、n的最大公约数,...
  • 函数check用来判断字符串s是否是“回文”(...
  • 若fp已正确定义为一个文件指针,d1.dat为...
  • 若有程序: main() int i,j; scanf...