Home > C programming question and answers mcq for viva

Study the following statements:

for(i=3; i<15; i+=3)

{ printf(“%d”, i);

++i;

}

What will be the output ?

A)  3 6 9 12
B)  3 6 9 12 15
C)  3 7 11
D)  3 7 11 15
Answer: 3 7 11

    Leave a Comment

    Your email address will not be published. Required fields are marked *