I'm trying to get this program to multiply two vectors and return the result c[2][2]. I think I have most of this correct, it looks like just my out put that is not making sense. I'm trying to get it to display something like

2 3

4 5

Any help?

Thanks

Here's the source

#include <stdio.h>

#include <math.h>

float multi(float a[2][2], float b[2][2], float c[2][2])

{

int i,j;

for (i=0;i<2;i++)

for (j=0;j<2;j++)

c[i][j]=a[i][j]+b[i][j];

}

main()

{

int i,j;

float *pc[2][2];

float a[2][2]={{5,6},{8,2}}, b[2][2]={{5,7},{3,5}};

float c[2][2];

multi(a,b,c);

for (i=0; i<2; i++)

for (j=0; j<2; j++)

printf("%f %f \n", c[2][2]);

return 0;

}