#include<stdio.h> #include<stdlib.h> void fun(float *p1,float *p2,float *s) { s=(float*)calloc(1,sizeof(float)); *s=*p1+*p2++; } main() { float a[2]={1.1,2.2};float b[2]={10.0,20.0},*s=a; fun(a,b,s); printf("%5.2f\n",*s); }