单项选择题
设fp为FILE类型的指针,要以只写的方式打开文件d:\data\file.txt,正确的语句是()。
A.fp=fopen("d:\data\file.txt","w");
B.fp=fopen("d:\\data\file.txt","w");
C.fp=fopen("d:\data\file.txt","r");
D.fp=fopen("d:\\data\file.txt","r");
点击查看答案
相关考题
