单项选择题

有以下程序: 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,5
B.5,11
C.11,11
D.11,5
<上一题 目录 下一题>
热门 试题

单项选择题
以下4个程序中,完全正确的是( )。
A.#include <stdih> main(); {/* programming */ printf("programming!\n");}
B.#include <stdih> main() {/*/ programming /*/ printf("programming!\n");}
C.#include <stdih> main() {/*/* programming */*/ printf("programming!\n");}
D.#include <stdih> main() {/* programming */ printf("programming!\n");}
单项选择题
下列数据结构中,能用二分法进行查找的是( )。
A.顺序存储的有序线性表
B.线性链表
C.二叉链表
D.有序线性链表
相关试题
  • 有以下程序: #include <string.h> ...
  • 以下程序企图把从终端输入的字符输出到名为...
  • 以下程序中函数sort的功能是对a所指数组中...
  • C
  • 有以下程序: #include <stdio.h> m...