首页 > 试题广场 >

以上程序运行时输入 9 3 ,写出运行结果。

[问答题]

#include<stdio.h>

void f1(int q,int *p)

{

    *p=(*p)+(*p);

    q=q*q;

}

void main()

{  
    int a,b;

    scanf("%d%d",&a,&b);

    f1(a,&b);

    printf("%d %d\n",a,b);

}

以上程序运行时输入 9 3 ,写出运行结果。
9,6
发表于 2020-06-20 10:49:14 回复(0)