i need help on the 2 questions below. Thanks a lot.
What is printed out by the following C code fragment?
int i, j, k=0;
for (i = 1; i <= 100; i*=2)
for (j = 1; j < i; j++)
k++;
printf("%i\n", k);
(A) 0
(B) 120
(C) 127
(D) 128
(E) None of the above.
What is printed out by the following C code fragment?
int i = -16;
for (i++; i++; i++)
i++;
printf("%i\n", i);
(A) 0
(B) 1
(C) 2
(D) Infinite loop.
(E) None of the above.