填空题
以下程序的运行结果是______。
#include <iostream.h>
func (int a,int b)
static int m=0,1=2;
i+=m+1;
m=i+a+b;
return m,
void main()
int k=4,m=1,p;
p=func(k,m);cout<<p<<”,”;
p=func(k,m); cout<<p<<endl;
【参考答案】
H,AG
点击查看答案
<上一题
目录
下一题>
热门
试题
填空题
下列程序的运行结果为______。 #include <iostream.h> void main(void) int a=2,b=-1,c=2; if (a<b) if (b<0) c=0; else c=c+1; cout<<c<<endl;
点击查看答案
填空题
下列程序的输出结果是______。 #include <iostream> using namespace std; template <typename T> T fun(Ta,Tb) return(a<=b)a:b; int main() cout<<fun(3,6)<<’,’<<fun(3.14F,6.28F)<<endl; return 0;
点击查看答案
相关试题
插入排序算法的主要思想是:每次从未排序序...
下面程序的输出结果为______。 #in...
阅读下面程序: #include <iostream.h...