Nmc_header
Search:  Signup to RSS feed
 Subscribe
Share/Save/Bookmark

if myVar is case2 then functions in this case and default get executed

C Programming Language>Flow Control>selection statements>switch statement>break statement and fall-through>not adding breaks in the cases>adds more functionality as you fall-through the cases>switch ( myVar ) { case 1: DoSometimes(); case 2: DoFrequently(); default: DoAlways(); }>

Mind Map branch: if myVar is case2 then functions in this case and default get executed switch ( myVar ) 
{
case 1:
DoSometimes();
case 2:
DoFrequently();
default:
DoAlways();
} if myVar is case2 then functions in this case and default get executed

Map Branches

Comments

0 branch comments of 0 total for this map and 0 for the whole document