单项选择题
有以下程序: #include <stdio.h> 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=fun(j, m); printf("%d,", k); k=fun(j, m); printf("%d\n", k); } 执行后的输出结果是______。
A.5, 11
B.5, 5
C.11, 11
D.11, 5
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
设有定义:char p[]={’1’, ’2’, ’3’}, *q=p; ,以下不能计算出一个char型数据所占字节数的表达式是______。
A.sizeof(p)
B.sizeof(char)
C.sizeof(*q)
D.sizeof(p[0])
点击查看答案&解析
单项选择题
下面结构体的定义语句中,错误的是______。
A.struct ord { int x; int y; int z;} struct ord a;
B.struct ord { int x; int y; int z; }; struct ord a;
C.struct ord { int x; int y; int z;} a;
D.struct { int x; int y; int z;} a;
点击查看答案&解析
相关试题
读取二进制文件的函数调用形式为:fread(b...
有以下程序:#include <stdio.h>main...
有以下程序:#include <stdio.h>#inc...
以下叙述中正确的是______。
有以下程序:#include <stdio.h>typed...