未知题型
下述程序向文件输出的结果是_______。 #include<stdio.h> void main() { FILE*fp=fopen('TEST','wb'); fprintf(fp,'%d%5.of%c%d',58,76273.0,'-'2278); fclose(fp); }
A.5876273-2278
B.5876273.000000-2278
C.5876273-2278
D.因文件为二进制文件而不可读
- A.h>
B.of%c%d',58,76273.0,'-'2278);
C.5876273-2278
B.5876273.000000-2278
C.5876273-2278
【参考答案】
C
解析:fprintf函数工作时,多个数据间不会自动加分隔符,选项A错误;浮点数的输出格式是“%5.of”表明......
(↓↓↓ 点击下方‘点击查看答案’看完整答案 ↓↓↓)
点击查看答案
相关考题
-
未知题型
are privately-owned networks within a single building or campus of up to a few kilometers in sizE.A.PSTNB.WANC.LAND.MAN
A.A.PSTN
B.WAN
C.LAN -
不定项选择
在可预测环境中,开放环路系统是极有效的。
A.错误
B.正确 -
未知题型
The essence of(74) is the invention of a hierarchical, domain-based naming schemE.It is primarily used for mapping host names and e-mail destinations to IP addresses.A.DNSB.NNTPC.CDPD.FTP
A.A.DNS
B.NNTP
C.CDP
