compares the entries in positions [
i][j]
and [
j][i]
of the
n ?n
two-dimensional array being checked by comparing their values, which are stored in
data[i*n+j]
and in
data[j*n+i]
if(data[(i*n+j)] != data[(j*n+i)])