Question
What is the output of this C code?
int main()
{
int i = 0;
char c = 'a';
while (i < 2){
i++;
switch (c) {
case 'a':
printf("%c ", c);
break;
break;
}
}
printf("after loop\n");
}
Answer: Option B
Was this answer helpful ?
none
Was this answer helpful ?
Submit Solution