单项选择题

以下叙述中错误的是( )。

A.在程序中凡是以“#”开始的语句行都是预处理命令行
B.预处理命令行的最后不能以分号表示结束
C.#define MAX是合法的宏定义命令行
D.C程序对预处理命令行的处理是在程序执行的过程中进行的
<上一题 目录 下一题>
热门 试题

单项选择题
有以下程序 #include<stdio.h> #include<string.h> typedef structchar name[9];char sex;float score[2];)STU; void f(STU a) STU b= Zhao ,'m',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];

main()

STU c="Qian",'f',95.0,92.0;
f(c):
printf("%s,%c,%2.0f,%2.0f\n",
C.name,c.sex,c.score[0],c.score[1]);

程序的运行结果是( )。

单项选择题
有以下程序 #include<stdio.h> main() int a[]=1,2,3,4),y,*p=&.a[3]; --p;y=*p;printf( y=%d n ,y); 程序的运行结果是( )。
A.y=0
B.y=1
C.y=2
D.y=3
相关试题
  • 有以下程序 #include<stdio.h> main...
  • 有以下程序 #include<stdio.h> void...
  • 有以下程序 #include<stdiu.h> main...
  • 有以下程序 #include<stdio.h> void...
  • 有以下程序 #include<stdio.h> int ...