The Following Code Is Written In C, Where Array Elements Withinthe Same Row Are Stored Contiguously.for (I=0; I<8; I++)For (J=0; J<8000; J++)A[I][J]=B[I][0]+A[J][I];A) References To Which Variables Exhibit Temporallocality? References To Which Variables Exhibit Spatial Locality?Please Give A Brief Explanation.b) Now Let Us Switch The Inner And Outer LoopThe following code is written in C, where array elements within the same row are stored contiguously.for (I=0; I<8; I++)for (J=0; J<8000; J++)A[I][J]=B[I][0]+A[J][I];a) References to which variables exhibit temporal locality? References to which variables exhibit spatial locality? Please give a brief explanation.b) Now let us switch the inner and outer loop order, as shown below. References to which variables exhibit temporal locality? References to which variables exhibit spatial locality? Please give a brief explanation.for (J=0; J<8000; J++)for (I=0; I<8; I++)A[I][J]=B[I][0]+A[J][I];