Question
What is the output of this C code?
int main()
{
int i = 0, j = 0;
for (i; i < 2; i++){
for (j = 0; j < 3; j++){
printf("1\n");
break;
}
printf("2\n");
}
printf("after loop\n");
}
Answer: Option C
Was this answer helpful ?
none
Was this answer helpful ?
Submit Solution