C Language Exercises – Day 12
01 Read the following program: #include <stdio.h> main() { int i,j, m=55; for(i=1;i<=3;i++) for(j=3; j<=i; j++) m=m%j; printf(“%d\n “, m); } The output of the program is A) 0 B) 1 C) 2 D) 3 Answer: B Explanation: Brief 02 Read the following program: main() { int a=5,b=4,c=3,d=2; if(a>b>c) printf(“%d\n”,d); else if((c-1>=d)==1) printf(“%d\n”,d+1); else printf(“%d\n”,d+2); … Read more