#include<stdio.h>
void XJiao(int x,int y,int *add,int *jian,int *cheng,float *chu){
*add=x+y;
*jian=x-y;
*cheng=x*y;
*chu=(float x)/y;
return;
}
int main(){
int *add=0;
int *jian=0;
int *cheng=0;
float *chu=0;
XJiao(212,90,&add,&jian,&cheng,&chu);
printf("加=%d\n",add);
printf("减=%d\n",jian);
printf("乘=%d\n",cheng);
printf("除=%.2f\n",chu); return 0;
}
|