In the nested loop:
For each pair (i,j):
A[j][i] = Temp - 100 = A[i][j]
This swaps the elements A[i][j] and A[j][i].
The nested loops run for all i from 1 to n and all j from 1 to n:
For any off-diagonal pair where $i
e j,theswapoperationisexecutedtwice:oncewhen(i, j)isvisited,andasecondtimewhen(j, i)isvisited.−Swappingthetwoelementstwicerestoresthemtotheiroriginalvalues.−Fordiagonalelementswherei = j$, swapping an element with itself leaves it unchanged.
Hence, the matrix remains unchanged, and the output is the matrix A itself (Option A).