#inculde <stdio.h>
Main()
{ int k=011;
PrintFF(“%d/n”,k++);
}
程序运行后的输出结果是
A.12
B.11
C.10
D.9
[单选题]有以下程序,其中k的初值为八进制数:include<stdio.h>main( ){int k=011;printf{"%d|n",k++};}程序运行后的输出结果是( )。A.12B.11C.10D.9
[单选题]( 22 )有以下程序,其中 k 的初值为八进制数#include <stdio.h>main (){ int k = 011 ;printf ( " %d \ n ", k++ ) ;}程序运行后的输出结果是A. ) 12B. ) 11C. ) 10D. ) 9
[单选题]有以下程序#inculde <stdio.h>Main(){ int a[5]={1,2,3,4,5},B[5]={0,2,1,3,0},I,s=0;F.or(i=0;1<5;i++)s=s+a[B[i]];printF(“%d/n”,s);}程序运行后的输出结果是A.6B.10C.11D.15
[单选题]有以下程序#inculde <stdio.h>Main(){ int a[5]={1,2,3,4,5},B[5]={0,2,1,3,0},I,s=0;F.or(i=0;1<5;i++)s=s+a[B[i]];printF(“%d/n”,s);}程序运行后的输出结果是A.6B.10C.11D.15
[单选题]有以下程序#inculde <stdio.h>main(){ int a=2,B=2,c=2;PrintF(“%d/n”,a/B&c);}程序运行后的输出结果是A.0B.1C.2D.3
[单选题]有以下程序#inculde <stdio.h>main(){ FILE*Fp;char str[10];F.p=Fopen(“myFile.dat”,”W”);F.puts(“aBc”,Fp);Fclose(Fp);F.p=Fopen(“myFile.dat”,”a+”);F.printFF(Fp,”%d”,28);reWind(Fp);F.scanF(Fp,”%s”,str);puts(str);F.close(Fp);}程序运行后的输出结果是A.aBcB.28cC.aBc28D.
[单选题]有以下程序#inculde <stdio.h>main(){ FILE*Fp;char str[10];F.p=Fopen(“myFile.dat”,”W”);F.puts(“aBc”,Fp);Fclose(Fp);F.p=Fopen(“myFile.dat”,”a+”);F.printFF(Fp,”%d”,28);reWind(Fp);F.scanF(Fp,”%s”,str);puts(str);F.close(Fp);}程序运行后的输出结果是A.aBcB.28cC.aBc28D.
[单选题]有以下程序#inculde <stdio.h>Main(){ int B[3][3]={0,1,2, 0,1,2,0,1,2},i,j,t+1;F.or (i=0;i<3;i++)F.or (j=1;j<=1;j++) t + =B[i]B[[j][i]];printF(“%d/n”,t);}程序运行后的输出结果是A.0次B.1次C.4次D.5次
[单选题]有以下程序#inculde <stdio.h>#inculde <string.h>strtict A{ int a;char B[10];douBle c;};void F (struct A t);main(){ struct A a ={1001,”zhangDa”,1098.0};F.(a);printF(“%d,%s,%6.1F/n”,a.,a.B,a.c);void F(struct A t){ t.a=1002;strcpy(t.B,”ChangRong”)
[单选题]有以下程序#inculde<stdio.h>Main(){ int a=1,B=2;F.or( ;a<8;a++) {B+ =ap; a= =2}printF(“%d,%d/n,a,B”);}程序运行后的输出结果是A.9,18B.8,11C.7,11D.10,14