·abc28,出自青书学堂系统川北医学院口腔医学院">
王老师:19139051760(微信同号)  13333709510
联大   青书学堂   文才   和学   现代兴业   安徽教育在线   超星   弘成   广东开放大学   国家开放大学   上海开放大学   含弘慕课 

教育服务

成人高校
成考录取分数线
我要提升学历
提升学历的理由:
升职加薪、积分落户、考研、公务员考试、子女入学、出国留学


成人高考报名入口

当前位置: 首页 > 青书学堂系统 > 川北医学院> 川北医学院口腔医学院
 

输入试题:
本题添加时间:2023/12/3 14:45:00
圆梦客服:王老师  19139051760(微信同号)  19139051760(微信同号)
有以下程序:#include <stdio.h>main(){FILE *fp; char str[10];fp = fopen( "myfile.dat", "w" );fputs( "abc", fp ); fclose( fp );fp = fopen( "myfile.dat", "a+" );fprintf( fp, "%d", 28 );rewind( fp );fscanf( fp, "%s", str ); puts( str );fclose( fp );}程序运行后的输出结果是( )。
·abc
·28c
·abc28
·因类型不一致而出错

答案是:单选题
·abc28

出自 川北医学院口腔医学院  青书学堂系统

川北医学院

更多试题>>>>
1、有以下定义和语句:struct workers{ int num; char name[20]; char c;struct{ int day; int month; int year; } s; };struct workers w, *
2、有以下程序:#include <stdio.h>#include <string.h>struct A{ int a; char b[10]; double c; };void f( struct A t );mai
3、设有定义:Struct complex{ int real,unreal;} data1={1,8},data2;则以下赋值语句中错误的是( )。
·data2=datal ;
·data2=(2,6);
·data2.

4、有以下程序:#include <stdio.h>int fun(){static int x = 1;x *= 2; return(x);}main(){int i, s = 1;for ( i = 1; i <= 2;
5、有以下程序:#include <stdio.h>int f( int t[], int );main(){int a[4] = { 1, 2, 3, 4 }, s;s = f( a, 4 ); printf( "%d\n", s


提升学历-成人高考报名入口 提升学历-成人高考院校名单