Hi All.
I was trying to compile this program....but it was not compiling.
Can any one help..
Code:#include<iostream.h>
void display(int *a,int row,int col){
int i,j;
for(i=0;i<row;i++)
{
cout<<"\n";
for(j=0;j<col;j++)
{
cout<<" "<<*(a+i*col+j);
}
}
}
void main(){
int a[3][2]={
{1,5},
{3 ,2},
{1,4},
};
int i,j;
display(a,3,2);
getch();
}