i got this code segment frm a bk...but am not understanding it....help me out... :?:
int place[4][3]={{1},{1,2},{1,2,3},{1,2,3}};
int row,col;
for(row=0;row<4;row++)
{
cout<<'\n';
}
for(col=0;col<3;++col)
{
cout<<setw(3)<<place[row][col];
}

:rolleyes:

Dave Sinkula commented: Use code tags. +0

>but am not understanding it....
Don't try to, it's wrong and will most likely give you an access violation at run-time. Dare I ask what book you got the code from?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.