单项选择题
有以下程序
#include<stdio.h>
int a=1:
int f(int c)
static int a=2;
c=c+1:
return(a++)+c;
main()
int i,k=0;
for(i=0;i<2;i++)(int a==3;k+=f(a);
k+=a;
printf("%d\n",k);
程序运行结果是( )。
A.14
B.15
C.16
D.17
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
下面程序的运行结果是( )。 #include <stdio.h> main() int a=1,b=10; do b-=a;a++;while(b--<0); printf( a=%d,b=%d n ,a,b);
A) a=3,b=11
B) a=2,b=8
C) a=1,b=-1
D) a=4,b=9
点击查看答案&解析
单项选择题
有以下程序: #include <stdio.h> main( ) int m,n,p; seanf( m = % dn = % dp = % d , &m, &n,&p) printf( % d% d% d n , m, n, p); 若想从键盘上输入数据,使变量m中的值为123,n中的值为456, p中的值为789,则下列选项中正确的输入是()。
A.m = 123n =456p =789
B.m = 123 n =456 p =789
C.m= 123,n =456,p =789
D.123 456 789
点击查看答案&解析
相关试题
下列程序的输出结果是______。 main...
阅读下列程序,则程序的输出结果为____...
有以下程序 #include <stdio.h> mai...
下面程序的运行结果是______。 #in...
下列程序的输出结果是______。 long...