cannot find where am i wrong
Resolve the error in the code
now it is working check it
for(int row=0;row<n;row++)
{
scol=0;
ecol=n-1;
while(scol<ecol)
{
swap(a[i][scol],a[i][ecol]);
scol++;
ecol–;
}
}
here instead of i use row
cannot find where am i wrong
now it is working check it
for(int row=0;row<n;row++)
{
scol=0;
ecol=n-1;
while(scol<ecol)
{
swap(a[i][scol],a[i][ecol]);
scol++;
ecol–;
}
}
here instead of i use row