こういうこと?

double f1(double x)
{
return exp(1/x);
}

main()
{
double x[50][50];
double ans;
int k,i;
ans = f1(a[k][i]);
}