JAMIA 2023 — Computer PYQ
JAMIA | Computer | 2023Consider the following code segment :
if(n> 0)
for (i= 0; i<3;i++)
if(array[i]> 0) {
printf(“%d\n”, array [i]); }
else
printf(“\n n is negative\n”);
Here,’else’ is paired with which ‘if ‘?

Consider the following code segment :
if(n> 0)
for (i= 0; i<3;i++)
if(array[i]> 0) {
printf(“%d\n”, array [i]); }
else
printf(“\n n is negative\n”);
Here,’else’ is paired with which ‘if ‘?