单项选择题

有以下程序:
#inelude <stdio.h>
main( )
int i,j,x=0;
for(i=0;i<2;i++ )
x++;
for(j=0;j<=3;j ++)
fi(j%2) continue;
x++;
x++;

pfinff( "x = % d\n",x); 程序执行后的输出结果是( )。

A.x=4
B.x=8
C.x=6
D.x=12
<上一题 目录 下一题>
热门 试题

单项选择题
有以下程序: #include <stdio.h> main( ) ehar c1,c2,c3,c4,c5,c6; scanf( % c% c% c% c , &c1, &c2, &c3, &c4); c5 = getehar( ); c6 = getchar( ); putehar(c1); putehar(c2); printf( %c%c n , c5, c6); 23 <回车> 45678 <回车>
A.1267
B.1256
C.1278
D.1245
单项选择题
有以下程序:#include <stdio.h>int fun(int n) if(n == 1) return 1; else return( n + fun( n - 1 ) );main( ) int x; seanf( % d ,&X) ;x = fun(x) ;pfinff( % d n ,x); 执行程序时,给变量x输入10,程序的输出结果是( )。
A.55
B.54
C.65
D.45
相关试题
  • 有以下程序: #include <stdio.h> m...
  • 执行以下程序后,test.txt文件的内容是(...
  • 有以下程序: #include <stdio.h> i...
  • 有以下程序:#include <stdio.h>fun(...