Enable Editing
8. What will be the output of the following C code?
a) 18
24
MTE is coming
b) 18
MTE is coming
#include<stdio.h>
int main()
{
int i = 0, j = 0;
for(i; i < 2; i++)
{
for (j = 0; j < 3; j++)
{
printf("18\n");
break;
}
printf("24\n");
}
printf("MTE is coming\n");
c) 18
24
18
24
MTE is coming
}
d)) 18
18
24
MTE is coming
Solution: C
Answers
Answered by
0
Answer:
#include
int main(intargc, char **argv)
{
char **items;
int j = 3, i;
items =argv;
for(i = 1; (i%4); i++)
{
int **p = &items[j];
printf("%c", **p);
j--;
}
return 0;
}
Explanation:
Similar questions