有以下程序
#include
void fun(int *x,int i)
{*x=*(x+i);}
void main()
{ int a[8]={1, 2, 3, 4, 5, 6, 7, 8},i;
fun(a,2);
for(i=0; i
A3234
B3231
C2334
D2331
相关试题
-
有以下程序 #include int fun() {static int x=1; x*=2; return x; } void main() {int i,s=1; for (i=1;i
-
有以下程序 #include void fun(int *x,int i) {*x=*(x+i);} void main() { int a[8]={1, 2, 3, 4, 5, 6, 7, 8},i
-
以下程序运行后的输出结果是( ) 。 #include void fun(int x) {if(x/5>0) fun(x/5); printf(“%d”,x); } main() {fun
-
程序的输出结果是( ) #include using namespace std; void fun(int x,int y,int z) { z=x*x+y*y; } int main
-
有以下程序 #include int i = 0; void fun() { { static int i = 1; std::cout