Code:
#include<stdio.h>
#define col 3
#define row 3

void foo(int *a,int col , int row)
{
int i,j;
int *a[col][row];
for(i=0;i<col;i++)
{
for(j=0;j<row;i++)
{
printf(" %d\n",*a[i][j]);
}
}
}


main()
{

int arr[col][row] = {(1,2,3),(4,5,6),(6,7,8)};

foo(&arr[0][0],col,row);

}
I am getting this error

parse error before numeric constant

Last edited by shabbir; 11Dec2007 at 17:56.. Reason: Code block