Computer Science, asked by abdullahs3727, 1 year ago

Determine Output:

void main() { int i=3; switch(i) { default: printf("zero"); case 1: printf("one"); break; case 2: printf("two"); break; case 3: printf("three"); break; } }
A.zero
B.three
C.Error
D.None of These

Answers

Answered by Anonymous
2
_____✨ HEY MATE ✨_____

➡️Option (B) 3 is the Right answer ✔️

Reason :- The default case can be placed anywhere inside the loop. It is executed only when all other cases doesn't match.

<marquee>✌️ I THINK IT HELPED YOU ✌️
Answered by Anonymous
1
heya..

Here is your answer...

Determine Output:

void main() { int i=3; switch(i) { default: printf("zero"); case 1: printf("one"); break; case 2: printf("two"); break; case 3: printf("three"); break; } }

B.three

It may help you...☺☺
Similar questions