C language loop structure and selection structure (1)

1. Else corresponds to the nearest unmatched if
2. The switch expression is an integer
3. The case behind is also an integer and a constant
4. Default:
printf("input error");
break;

Guess you like

Origin blog.51cto.com/14959142/2596446