注意:此页面搜索的是所有试题
题目内容
(中北大学C语言程序设计)
若磁盘上已存在某个文本文件,其全路径文件名为c:\c\data.txt,下列语句中不能打开文件的是( )。(2分)
AFILE *in;in=fopen("c:\c\data.txt","r");
BFILE *in;in=fopen("c:\\c\\data.txt","r");
CFILE *in;in=fopen("c:\\c\\data.txt","a+");
DFILE*in;in=fopen("c:\\c\\data.txt","r+");
AFILE *in;in=fopen("c:\c\data.txt","r");
BFILE *in;in=fopen("c:\\c\\data.txt","r");
CFILE *in;in=fopen("c:\\c\\data.txt","a+");
DFILE*in;in=fopen("c:\\c\\data.txt","r+");
参考答案