题目内容

Each member of a structure variable is accessed by giving both the structure name and individual data item name, separated by a ____.

A. @
B. ->
C. :
D. .

查看答案
更多问题

____ is NOT a variable declaration statement.

A. struct {int month; int day; int year;} birth;
B. struct {int month; int day; int year;} birth, current;
C. struct Date {int month; int day; int year;};
D. struct Date {int month; int day; int year;} birth;

若成功执行下面的代码: float fahr,cels; fahr=90; cels=5/9*(fahr-32); printf("%-5.1fH=%5.1fC",fahr,cels); 给出输出结果?(其中#表示空格)

A. 90.0H=32.2C
B. 90.0#H=#32.2C
C. 90.0H=0.0C
D. 90.0#H=##0.0C

下面是一个程序的代码片段,每行代码给出行号: 1. int n, *p=NULL; 2. *p=&n; 3. scanf("%d",&p); 4. printf("%f\n",p); 上面哪一行代码是正确的,给出行号?

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

若成功执行下面的代码: #include char a[]="programming",*b="practice";int main(){ char *p1,*p2; int i; p1=a;p2=b; for(i=0;i<5;i++) if(*(p1+i)!=*(p2+i)) printf("%c",*(p2+i)); return 0;}给出输出结果?

A. ERROR
B. pr
C. ogr
D. act

答案查题题库