ANONYMOUS wrote:
> For the question 12
>
> void function(void) {
> for (int i = 0; i < 5; ++i) {
> switch (i % 3) {
> case 0:
> printf("%i ", i);
> break;
> case 1:
> printf("%i ", i);
> break;
> }
> }
> printf("\n");
> }
> The options for the output are:
> A. 0 1 2 3 4
> B. 1 3 5
> C. 0 0 1 3 3 4
> D. 0 1 1 2 3 4 4
>
> can u please confirm what will be the correct output? my output doesn't match the options. maybe I am wrong :)idk
You're right. I think there is a typo in the answer. None of the options are correct. However, there is one option that is very close to the correct answer. Can you see which one it is?