im working on a program for my exams and its not really working.....cant really figure out why........i ran my program in both borland and turbo.....and both are giving the same error......DECLARATION SYNTAX ERROR.
void mul(int a[][3],int b[][3])
{int k=0;
for (i=0;i<3;++i)
{
for(j=0;j<3;++j)
{ c[i][j]=0;
for(k=0;k<3;++k)
c[i][j]=c[i][j]+(a[i][k]*b[k][j]); //Multiplication of two matrices
}
}
cout<<"THE RESULTANT MATRIX IS:"<<"\n";
for(i=0;i<3;i++)
{
cout<<"\n";
for(j=0;j<3;j++)
cout<<" "<<c[i][j];
}
}
its a really simple program but still i cant figure out the problem..... :( !!!
would really appreciate the help.....!
the compiler points to the line after the function name......