I have written this program and I want to know if it is correct or not? What will happen in this array pInt?
#include <iostream>
using namespace std;
int main(int argc, char*argv[])
{
system("color 1f");
int **pInt=new int*[2];
int i=0,j=0;
pInt[0]=new int[4];
pInt[1]=new int[7];
for(i=0;i<2;i++)
{
for(j=0;j<7;j++)
{
pInt[i][j]=i+j;
}
}
for(i=0;i<2;i++)
for(j=0;j<7;j++)
cout<<"pInt["<<i<<"]["<<j<<"]= "<<pInt[i][j]<<endl;
cout.write("\n\n\n\n\n",5);
return 0;
}