![](https://lstatic.shangxueba.com/jiandati/h5/images/m_q_title.png)
![](https://lstatic.shangxueba.com/jiandati/pc/images/logo2.png)
![下列程序段的输出结果是______。 struct { int a,b,c; }s={1,2,3},*p; p=&s; s.a=s.b+s.c; printf("%d\n",p->a);](https://img2.soutiyun.com/shangxueba/askcard/2023-04/13/572/20230413160529509.jpg)
[单选题]
下列程序段的输出结果是______。 struct { int a,b,c; }s={1,2,3},*p; p=&s; s.a=s.b+s.c; printf("%d\n",p->a);
A.5
B.4
C.3
D.无结果
提问人:网友聂坤
发布时间:2022-01-07
A.5
B.4
C.3
D.无结果
A、50
B、35
C、55
D、45
A、5
B、6
C、7
D、8
A、5
B、6
C、7
D、8
A、A.#define MYNAME="ABC"
B、B.#include stdio.h
C、C.for(i=0;i<10;i++);> D、D.struct int stu{int name};
如果abc.txt文件的内容为:2*3=6and40*8is40! 下面程序运行后,abc.txt文件的内容变成 #include <stdio.h> #include <stdlib.h> int main( ) { FILE *fp; fp=fopen("abc.txt","r+"); while(!feof(fp)) if(fgetc(fp)=='*') { fseek(fp,-1,1); fputc('$',fp); fseek(fp,ftell(fp),0); } fclose(fp); return 0; }
A、8
B、4
C、13
D、1
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!