Computer Science, asked by krishna943, 1 year ago

main()

{

int a[3][4] ={1,2,3,4,5,6,7,8,9,10,11,12} ;

int i, j , k=99 ;

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

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

if(a[i][j] < k) k = a[i][j];

printf("%d", k);

}

Answers

Answered by salonidarji2004
15
Hiiee, I m here to help uhh.

Answer = 1
It is because value of k = 1 after first loop execution. So, it next all the values are greater than k and will not print any thing after that......

Hope it helps...... n if uhh think itzz right then plzz mark it as brainliest.....
Answered by codiepienagoya
3

"1" is the output of the given code.

Explanation:

  • In the given code a two-dimensional array is defined, which contains array elements, in the next line, three integer variable i, j, and k is declared, in which variable k assign a value, that is "99".
  • In the next step, two for loop is declared, inside the loop an if condition is defined, that checks value of array a is less then k.  
  • The given condition is true because its value is less than 99, so variable k hold array first element value, that is equal to 1, and at the last print, the method is used, that prints its value.

Learn more:

  • The output is: https://brainly.in/question/7882484
Similar questions