logo
YourData+
玉东数据
首页专升本CLASSROOM博客工具

C语言程序设计章节练习七:函数

pdf
2. (填空)
2. [填空]

以下程序的运行结果是(  )。

#include <stdio.h>

int a = 5; 
int b = 7;

int plus(int x, int y) {
    int z; 
    z = x + y; 
    return (z);
}

int main(  ) {
    int a = 4; 
    int b = 5; 
    int c;
    c = plus(a, b);
    printf("A + B = %d\n", c);
    return 0;
}
答案:
解析:

Copyright ©

YourData+2025.甘肃玉东数据有限公司
应用合作解决方案MUI-Remix
18919890888微信同号
陇ICP备2021001826号