Solved: Could Say Output Output Q32456911

Could you say what the output is, and why that is the output

Assume the following declaration for the array g: int i, i, g[3]13-,0,0,1,1,1, (2,2,2)) Write down the screen output generated by each of the following C codes: Output Screen sum0 for (i -0; i <2; i++) for (j = 0; j <-2; j++) sum-sum+g[i]l printf (The value is: 8d, sum) Output Screern sum1 for (i -l; i <2; i++) for (j 0; j <= 1; j++) sum = sum * g[i] [j]; printf (The value is: 8d, sum) Ouput Screen sum0 for ( 1-0; i <-2; i++) umsumi[1]; printf (The value is: 8d,sum)

Assume

OR