#include<iostream>
#include<iomanip>
void main()
{
using namespace std;
int *p[2];
p[0]=new int[3];
p[0][0]=1;
p[0][1]=2;
p[0][2]=3;
int a[3]={4,5,6};
p[1]=a;
for (int i=0;i<=1;i++)
for (int j=0;j<=2;j++)
cout<<p[i][j]<<" ";
cout<<endl;
delete [2]*p;
}