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

下面程序的输出结果是#include <stdio.h>main(){int i=2;printf("%d",f(i,i+1) );}int f(i


下面程序的输出结果是 #include <stdio.h> main(){ int i=2; printf("%d",f(i,i+1) ); } int f(int a,int b) { int c; c=a; if(a>b) c=1; else if(a==b) c=0; else c=-1; return(c);}A.-1 B.0 C.1 D.2

参考答案
您可能感兴趣的试题
  • 以下程序输出的结果是 #include&lt;stdio.h&gt; #include&lt;string.h&gt; main() { char w[][10

  • 以下程序输出的结果是 #include&lt;stdio.h&gt; #include&lt;string.h&gt; main() { char w[][10

  • ● 下面程序运行后的输出结果是 (59) 。 #include &lt;stdio.h&gt; #include &lt;string.h&gt; voi

  • (14)以下程序运行后的输出结果是 【14】 。#include &lt;stdio.h&gt;#include &lt;stdlib.h&gt;#inc

  • 以下程序的输出结果是【 14 】#include &lt;stdio.h&gt; #include &lt;stdio.h&gt;#include &lt;st

  • 以下程序的输出结果是#include &lt;conio.h&gt;#include &lt;stdio.h&gt;#define M 100void fun(