Computer Science, asked by goturuchandana, 5 months ago

What is the output of the following program?
#include<stdio.h>
#include<stdlib.h>
int main(){
int matrix[4][4];
for(int row =o row < 4; row++) {
for(int col =0; col < 4; col++){
matrix[row][col]= row+col;
matrix[col][row] =matrix[row][col] + row+col;
}
}
int c = 0;
for(int row=0;row <4; row++)
for(int col =0; col < 4; col++) {
if(matrix[row][col]%2 == 0){
C++;
}
}
}
printf("%d",c);
return 0;
}​

Answers

Answered by student8a31
1

ɪ ᴅɪᴅ ɴᴏᴛ ᴜɴᴅᴇʀꜱᴛᴀɴᴅ ᴀɴᴅ ɪᴛ ɪꜱ ꜱᴏ ʟᴏɴɢ

Similar questions