![](https://static.youtibao.com/asksite/comm/h5/images/m_q_title.png)
printf("%s",(*p).number);(*p).number 表示 p 指向结构体变量中的成员 number()
![](https://static.youtibao.com/asksite/comm/h5/images/m_q_a.png)
是
![](https://static.youtibao.com/asksite/comm/h5/images/solist_ts.png)
是
3.已建立学生“英语”课程的成绩链表(成绩存于score域中,学号存于num域中), 下列函数用于输出待补考学生的学号和成绩,及补考学生人数。 void require(struct student *head) { struct student *p; ① if(head!=NULL) { ② while(p!=NULL) { if(③ ) { printf(”%7d %6.1f\n”,p->num,p->score); n++; } p=p->next; } printf(”%ld\n”, n); } }
A.ABCD
B.ABCDEFGHIJKL
C.ABCDEFGHIJKLMNOPQRST
D.AEIM
试题5:
char *GetMemory(void )
{
char p[] = "hello world";
return p;
}
void Test(void )
{
char *str = NULL;
str = GetMemory();
printf(str );
}
A.10
B.11
C.20
D.21
以下程序运行后的输出结果是【 】。 include <string.h> char *ss(char *s) {char *p;t; p=s+1;t=*s; while(*p){*(p-1)=*p;p++;} *(p-1)=t; return s; } main() { char *p,str[10]="abcdergh"; p=ss(str); printf("%s\n",p); }
A.1
B.12
C.123
D.1234
以下程序的输出结果为()。 #include<stdio.h> main() { char *alpha[6]={"ABCDEFGH","IJKL","MNOP","QRST","UVWX"}; char**p;int i; p=alpha; for(i=0;i<4;i++)printf(" %s" ,p[i]);printf("\n" );}
A.ABCDEFGHIJKL
B.ABCD
C.ABCDEFGHIJKLMNOPQRST
D.AEIM
A.d
B.e
C.h
D.b
A.1
B.1 2
C.1 2 3
D.1 2 3 4