switch case program example output in c
switch case program example output in c
![switch case program example output in c](https://sp-ao.shortpixel.ai/client/to_webp,q_glossy,ret_img,w_492,h_396/https://blog.eduguru.in/wp-content/uploads/2018/10/switch-case-program-example-output-in-c.png)
What would be the output of the following programs:
main( )
{
int k, j = 2 ;
switch ( k = j + 1 )
{
case 0 :
printf ( “\nTailor”) ;
case 1 :
printf ( “\nTutor”) ;
case 2 :
printf ( “\nTramp”) ;
default :
printf ( “\nPure Simple Egghead!” ) ;
}
}