有以下程序 #include< stdio.h> void main() { FILEf; f=fopen(""filea.txt"",""w""); fprintf(f,""abc""); fclose(f); } 若文本文件filea.txt中原有內容為:hello,則運行以上程序后,選項中哪些不是文件filea.txt中的內容為 ()
A.helloabc B.abclo C.abc D.abchello
輸入10,該程序的運行效果是() #include< stdio.h> void main() { int a=15,b=25; intp=&a; intq=&b; q=p; printf(""%d ,%d\n"",*p,*q); }
A.15,15 B.15,25 C.25,15 D.25,25
有以下程序 #include < stdio.h> main() { int a[][3]={{1,2,3},{4,5,0}},(*pa)[3],i; pa=a; for(i=0;i<3;i++) if(i<2) pa[1][i]=pa[1][i]-1; else pa[1][i]=1; printf(""%d\n"",a[0][1]+a[1][1]+a[1][2]); } 執(zhí)行后輸出結果是()
A.7 B.6 C.8 D.無確定值