填空题

函数中的形参和调用时的实参都是变量时,参数传递方式为 [9] 。

【参考答案】

值传递方式
<上一题 目录 下一题>
热门 试题

填空题
阅读下列程序,写出程序的运行结果 [8] 。 #include<iostream. h> void main() char str1[ ]: Hello, World; char str2[100]; int i=0; do if (str1[i]>= ’a’&& str1[i]<= ’z’ ) str2[i]=str1[i]-32; else str2[i]=strl [i]; i++; while(strl[i]!=’ 0’); str2[i]=’ 0’; cout<<str1<<end1; cout<<str2<<end1;
填空题
以下程序段的输出结果是 [7] 。 int x, i ; for (i=1; i<=100; i++) x=i; if (++x%2==0) if (++x%3==0) if(++x%7==0) cout<<i<<’ , ’;
相关试题
  • 多态性可分为二类:编译时和 [15] 。
  • 下列程序中声明了两个类AA和BB,其中函数“...
  • 类是用户定义的类型,具有类类型的变量称作...
  • 以下程序的输出结果是 [10] 。 char...