单项选择题

有下面的程序:
#include <stdio, h>
main ( )
enum team my,your=4,his,her=his+10;
prinff(" % d %d %d %d \\n" ,my,your,his,her);
此程序的输出结果是()。

A. 0 1 2 3
B. 0 4 0 1 0
C. 0 4 5 1 5
D. 1 4 5 1 5

<上一题 目录 下一题>
热门 试题

单项选择题
请读程序: #include <stdio.h> int a[]=2,4,6,8,; main() int i; int *p=a; for( i=0;i<4;i++) a[i]=*p++; priatf( %d n ,a[2]); 上面程序的输出结果是()。

A. 6
B. 8
C. 4
D. 2

单项选择题
有以下程序 #include<stdio.h> #include<string.h> typedef structchar name[9];char sex;float score[2];)STU; STU f(STU a) STU b= Zhao ,'in',85.0,90.0);int i; strcpy(a.name,b.name); a.sex=b.sex; for(i=0;i<2;i++) a.score[i]=b.score[i]; return a; main() STU c= Qian ,'f',95.0,92.0,d; d=f(c);printf( %s,%c,%2.0f,%2.0f ,d.name,d.sex,d.score[0],d.score[1]); 程序的运行结果是()。

A.qian,f,95,92
B.qian,m,85,90
C.ZhaO,m,85,90
D.Zhao,f,95,92

相关试题
  • 一颗二叉树中共有70个叶子结点与80个度...
  • 有以下程序 #include<stdio.h> #inc...
  • 请读程序: #include <stdio.h> int...
  • 若文本文件filea.txt中原有内容为:hello...
  • 已定义以下函数: fun(int*p) return...