当前位置: 答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

(33)有以下程序#include <stdio.h>int fun (int x,int y){ if (x!=y) return ((x+y);2);el


(33)有以下程序

#include <stdio.h>

int fun (int x,int y)

{ if (x!=y) return ((x+y);2);

else return (x);

}

main()

{ int a=4,b=5,c=6;

printf("%d ",fun(2*a,fun(b,c)));

}

程序运行后的输出结果是

A)3

B)6

C)8

D)12

请帮忙给出正确答案和分析,谢谢!

参考答案
您可能感兴趣的试题
  • 请阅读下述代码,写出程序执行的结果#include &lt;iostream&gt; using namespace std; class C

  • 请阅读下述代码,写出程序执行的结果#include &lt;iostream&gt; using namespace std; class C

  • (33 )有以下程序#include &lt;studio.h&gt;int f (int t[],int n ) ;main{ int a[4]={1,2,3,4}

  • (12 ) 有以下程序#include &lt;stdio.h&gt;#include &lt;string.h&gt;void fun (char *str ){

  • (33 )有以下程序#include &lt;studio.h&gt;int f (int t[],int n ) ;main{ int a[4]={1,2,3,4}

  • 有以下程序#include &lt;stdio.h&gt;#include &lt;string.h&gt;main(){ printf("%d ",strlen (