开放大学在线学习搜题
当前位置:首页 > 学习题库 > C程序设计语言

问题

以下程序的运行结果是 。 #include main() {

发布时间:2025-11-15   作者:广东开放大学   浏览:0

以下程序的运行结果是      。

#include

main()

{

    int a=1,b=2,c;

     c=max(a,b);

     printf("max is %d\n",c);

}

max(int x,int y)

{

    int z;

     z=(x>y)?x:y;

     return(z);

}