[Solved] How to zero specific column of 2d array [closed]


int column=1; //in your example
int row=1;//in your example


//for rows
for(int i = 0; i<numberofrows; i++)
{
  array[i][column]=0;
}

//for columns
for(int i = 0; i<numberofcolumns; i++)
{
  array[row][i]=0;
}

1

solved How to zero specific column of 2d array [closed]