单项选择题

有下列程序:

fun (int x,int y)

static int m=0,i=2;

i+=m+1;m=i+x+y;return m;



main()

int j=1,m=1,k;

k=fun0,m);printf("%d,"k);

k=fun0,m);printf("%d\n",k);



执行后的输出结果是( )。

A.5,5
B.5,11
C.11,11
D.11,5
<上一题 目录 下一题>
热门 试题

单项选择题
下列程序的运行结果为( )。 #include<stdio.h> voidabc(char*str) int a,b,i,j; for(i=j=0;str[i]!=’ 0’;i++) if(str[i]!=’a’) str[j++]=str[j]; str[j]=’ 0’; void main() char Str[]= abcdef’; abc(str); printf( str[]=%s ,str);
A.str[]=bcdef
B.str[]=abcdef
C.str[]=a
D.str[]=ab
单项选择题
下列程序的输出结果是( )。 #include<stdio.h> main() iut a=2,b=3,p; p=f(a,b) ; printf( %d ,p); intf(a,b) int c; if(a>b) c=1; e1Seif(a==b) c=0; else(3=-1; return(c) ;
A.-1
B.0
C.1
D.2
相关试题
  • 下列二维数组初始化语句中,不正确的是( )。
  • 已定义下列函数: int fun(int*p) re...
  • 在数据库设计中,将E-R图转换为关系模式的...
  • 若有定义int a=5,b=7;,则表达式a%...
  • 结构化分析方法是面向( )的自顶向下、逐...