题目内容

下列#include命令中,正确的是()。

A. #include "math.h"
B. #include [math.h]
C. #include (math.h)
D. #include {math.h}

查看答案
更多问题

以下程序段运行后*(p++)的值为()。char a[5]="work";char *p;p=a;

A. 'w'
B. a[0]的地址
C. 'o'
D. a[1]的地址

若有定义:int a=4,*p=&a; ,则以下()均表示地址。

A. a,p
B. &a,p
C. &a,*p
D. a,*p

若定义如下结构,则能打印出字母M的语句是()。 struct person{ char name[9]; int age;}; struct person class[10]={"Wujun",20, "Liudan",23, "Maling",21, "zhangming",22};

A. printf("%c\n",class[3].name);
B. printf("%c\n",class[2].name[0]);
C. printf("%c\n",class[2].name[1]);
D. printf("%c\n",class[3].name[1]);

以下程序段的运行结果是()。 union { int n; char str[2]; }t; t.n=80; t.str[0]='a'; t.str[1]=0; printf("%d\n", t.n);

A. 80
B. a
C. 0
D. 97

答案查题题库