#include int main() { int a=1; switch(a) { case 0: std::cout<<"Zero "; case 1: std::cout<<"One "; case 2: std::cout<<"Two "; default: std::cout<<"Default "; } }
Answers
Answered by
1
Answer:
a=1
Switch(1) it means go and check the case 1,there one will print, there is no break statement after case1, so it will excute all statements from case 1 to default
One Two Default
Similar questions