#include "stdio.h" #include "string.h" int sum=0,b=3,c=6; funcsum(int ss[]); int jc(int x); func(int b,int c); main(){ int a[5]={1,24,3,14,3}; sum=funcsum(a); func(b,c); printf("sum=%d,b=%d,c=%d\n",sum,b,c); } funcsum(int ss[]) { int sum=0,i; for(i=0;i<5;i++) if(ss[i]%2!=0) sum+=jc(ss[i]); return sum; } int jc(int x) {static sum=1,i; for(i=1;i<=x;i++) sum*=i; return sum; } func(int b,int c) {b=b+c; c=b-c; b=b-c; }