Code: C
#include<iostream.h>
main()
{
int* a;int arr[2][3];

arr[0][0]=1;
arr[0][1]=2;
arr[0][2]=3;
arr[1][0]=4;
arr[1][1]=5;
arr[1][2]=6;

a = &arr[0][0];


int i,j;

for(i=0;i<2;i++)
{
for(j=0;j<3;j++)
{
cout<<*(a+j)<<endl;
}
a=a+3;
}
}

Last edited by shabbir; 18Dec2007 at 17:53.. Reason: Code block