Professional Documents
Culture Documents
h>
#include <stdio.h>
#define R 3
#define C 3
int tc[R][C];
tc[0][0] = cost[0][0];
return tc[m][n];
}
int main()
{
int cost[R][C] = { { 1, 2, 3 },
{ 4, 8, 2 },
{ 1, 5, 3 } };
printf(" %d ", minCost(cost, 2, 2));
return 0;
}