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
1
ɪ ᴅɪᴅ ɴᴏᴛ ᴜɴᴅᴇʀꜱᴛᴀɴᴅ ᴀɴᴅ ɪᴛ ɪꜱ ꜱᴏ ʟᴏɴɢ
Similar questions
Physics,
2 months ago
Math,
5 months ago
Math,
5 months ago
Social Sciences,
10 months ago
Hindi,
10 months ago