hello,
Can anybody just tell me how to scan or input a 2d array using pointer i e indirect reference. I am allocating memory the array dynamically.
the statement i am using is

int *a[5];
for(i=0;i<5;i++ )
{
a[i]=(int*)malloc(s izeof (int)*5);
}
for(i=0;i<3;i++ )
{for(j=0;j<3;j+ +)
{
scanf("%d",*(*( a+i)+j));
}
}
this will work sometime...