单项选择题

执行下面程序的正确结果是( )。
main()
float a=1.9;
switch (

A.
case 0:printf("0000");
 
<上一题 目录 下一题>
热门 试题

单项选择题
若有如下程序段: struct student int num;float score; stu[3]=10,85,60,58,32,23; main() struct student*t; t=stu; 则下面表达式中值为58的是( )。
A.(*t).num
B.*(t++)->num
C.(*++t)score
D.(++t)->score
单项选择题
若有如下程序: sub(p,n) int(*p)[3],n; int i; for(i=0;i<=n;i++)printf( %d ,p[i][2]); main() int s[3][3]=1,2,3,4,5,6,7,8,9; sub(s,2); 则程序运行后的输出结果是( )。
A.369
B.248
C.456
D.789
相关试题
  • 下面程序的功能是求整数m、n的最大公约数,...
  • 以下程序从终端读入数据到数组中,统计其中...
  • 若fp已正确定义为一个文件指针,d1.dat为...
  • 函数check用来判断字符串s是否是“回文”(...
  • 下述程序的输出结果是 【13】 。 # ...