首页 > 建筑工程
题目内容 (请给出正确答案)
[判断题]

printf("%s",(*p).number);(*p).number 表示 p 指向结构体变量中的成员 number()

答案
收藏

如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“printf("%s",(*p).number);(*p).…”相关的问题
第1题
3.已建立学生“英语”课程的成绩链表(成绩存于score域中,学号存于num域中), 下列函数用于输出待补考学生的学号和成绩,及补考学生人数。 void require(struct student *head) { struct student *p; ① if(head!=NULL) { ..

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); } }

点击查看答案
第2题
下面程序的功能是从键盘输入一行字符,统计有多少个单词,单词间用空格分隔。补充所缺语句。 inc
lude<stdio.h> main() { chars s[80],c1,c2= ; int i=0,num=0; gets(s); while(s[i]!=\0) { c1=s[i]; if(i==0)c2= ; else c2=s[i-1]; if(【 】)num++; i++; } printf("There are%d words,\n",num); }

点击查看答案
第3题
printf("%s",(*p).number);上式中,"."运算符的优先级高于“*”运算符的优先级()
点击查看答案
第4题
以下程序的输出结果为()。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.ABCD

B.ABCDEFGHIJKL

C.ABCDEFGHIJKLMNOPQRST

D.AEIM

点击查看答案
第5题
试题5:char *GetMemory(void ){char p[] = "hello world";return p;}void Test(void ){char *s

试题5:

char *GetMemory(void )

{

char p[] = "hello world";

return p;

}

void Test(void )

{

char *str = NULL;

str = GetMemory();

printf(str );

}

点击查看答案
第6题
有以下程序:struct s{ int x,y; }data[2]={10,100,20,200};main(){ struct s *p=data;printf("%d\n",(p)->x);}程序运行后的输出结果是()。

A.10

B.11

C.20

D.21

点击查看答案
第7题
以下程序运行后的输出结果是【 】。 include <string.h> char *ss(char *s) {char

以下程序运行后的输出结果是【 】。 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); }

点击查看答案
第8题
下面程序的运行结果是() #include main() {intnum=0; while(num<=2) {num++; printf(“%d,num); } }。

A.1

B.12

C.123

D.1234

点击查看答案
第9题
以下程序的输出结果为()。#include<stdio.h>main(){ char *alpha[6]={"ABCDEFGH","IJKL","MNOP","

以下程序的输出结果为()。 #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

点击查看答案
第10题
若有如下程序: int s[3] [3]={'a','b','C','d','e','f','g','h','i'},*t; main() {t:(int*)malloc(sizeof(int)); sub(t,s); printf("%c\n",*t); } sub(int*p,int b[][3]) {*p=b[2][1]; } 则程序运行后的输出结果是()。

A.d

B.e

C.h

D.b

点击查看答案
第11题
下面程序的运行结果是( )。 main() {int num=0; while(num<=2) { num++; printf("%d\n",num); } }

A.1

B.1 2

C.1 2 3

D.1 2 3 4

点击查看答案
退出 登录/注册
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改