Computer Science, asked by paneerbhavani10, 6 hours ago

#include <stdio.h>
int maino
{
int mat[4][4] = {{1,0,0,1},{0,0,1,0},{1,0,1,0},{0,1,0,1}};
int ij,count=0;
for (i = 0; i < 4; i++)
{ count = 0;
for (j = 0; j <4; j++){
if (
mat[i][count++] = mat[i][j]; }
while (count < 4) mat[i][count++] = 0; }
for (i = 0; i < 4; i++) {
for (i = 0; j < 4; j++) { printf("%d", mat[i][j]); }
printf("\n"); } }
) output
1100
1000
1100
1100
Options
1. mat[i][j] == 0
2. mat[i][j] == 0
3. mat[j][i] != 0
4. mat[i][j] != 0​

Answers

Answered by Ruchik16081962
4

Explanation:

stdio.h>

int maino

{

int mat[4][4] = {{1,0,0,1},{0,0,1,0},{1,0,1,0},{0,1,0,1}};

int ij,count=0;

for (i = 0; i < 4; i++)

{ count = 0;

for (j = 0; j <4; j++){

if (

mat[i][count++] = mat[i][j]; }

while (count < 4) mat[i][count++] = 0; }

for (i = 0; i < 4; i++) {

for (i = 0; j < 4; j++) { printf("%d", mat[i][j]); }

printf("\n"); } }

) output

1100

1000

1100

1100

Options

1. mat[i][j] == 0

2. mat[i][j] == 0

3. mat[j][i] != 0

4. mat[i][j] !=

Similar questions