6.3k views
5 votes
Question 4: What will be the output of the code? Show a complete analysis.

#include
int main(void)
{
int A[3][3]={{1,4,3},{6,2,4},{-3,8,2}};
int s;
for(int i = 0; i<=2; i++)
{
S = ALOIi]+A[111]+A[21i];
printf("%d",s);
}
return 0;
}

User Mahks
by
5.9k points

1 Answer

2 votes

Answer:

The output of the code is 8

User Pragash
by
5.9k points