#include<stdio.h>
#include<conio.h>
void main()
{
int a[10][10],b[10][10],c[10][10],i,j,k,m,n,p,q;

printf("Enter The Rows And Cloumns in the Matrix:");
scanf("%d %d",&m,&n);

printf("\nEnter Elements Of The Matrix:\n");

for(i=0;i< m;i++)
{
for(j=0;j< n;j++)
{
scanf("%d",&a[j]);
}
}
printf("The First Matrix Is:\n"); /* Print the first matrix */
for(i=0;i< m;i++)
{
for(j=0;j< n;j++)
printf(" %d ",a[j]);
printf("\n");
}
getch();
}

what's your program going to do if I enter 15 for rows and 20 for columns???

Do you have a question about the code you posted?