补齐下面程序中的语句,或在注释处填写语句输出结果。#include struct student{int a;char c;};int main(){int i,a[6]= {0,1,2,3,4,5};int *p,x,y;struct student s= {98,'A'};for (i=5; i>=0 ; i--)printf("%d",a[i]);//上面循环输出结果 ____________________printf("\n");printf("%d-%d-%d",a[1],a[3],a[5]); //____________________printf("\n");printf("%d %d %d",a[0],a[2],a[4]); // ____________________printf("\n");_____________ ; //p指向数组ax=*(p+2);y=*(p+4);printf("*p=%d,x=%d,y=%d",*p,x,y); // ___________________printf("\n");printf("%d,%c",s.a,s.c); // ________________return 0;}
下面程序运行后输出结果是。#includestructSTR{intn;charc;};voidfunc(structSTRb){b.n=83;b.c='B';}intmain(){structSTRa={90,'A'};func(a);printf("%d,%c",a.n,a.c);return0;}
若有以下定义和语句,则下面对结构体变量a的引用不正确的是( )。struct data {int i;char c;float f;}a;int n=10;
A.printf("%d,%c,%f",a);
B.printf("%f",a.f);
C.a.i++;
D.a.i=n;