Question: What values do arrays A and B have after executing the code below? int A[2][2]={{0,1},{1,1}} ; int B[2][2]={{2,3},{4,5}} ; for (int x=0;x ) { for
What values do arrays
Aand
Bhave after executing the code below?\ int
A[2][2]={{0,1},{1,1}};\ int
B[2][2]={{2,3},{4,5}};\ for (int
x=0;x ) {\ for (int
y=0;y\ if
(x==y)\
B[y][x]=A[x][y];\ }\ }\ // Print
A and
B 
What values do arrays A and B have after executing the code below? int A[2][2]={{0,1},{1,1}}; int B[2][2]={{2,3},{4,5}}; for (int x=0;x
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
