L4-Control Statement in C -Part 1.ppt
L4-Control Statement in C -Part 1.ppt
Content for the slides have been taken from the various sources and
from the reference books.
main( )
{ The output of this program would be:
char c = 'x' ; I am in case x
switch ( c )
{
case 'v' :
printf ( "I am in case v \n" ) ;
break ;
case 'a' :
printf ( "I am in case a \n" ) ;
break ;
case 'x' :
printf ( "I am in case x \n" ) ;
break ;
default :
printf ( "I am in default \n" ) ;
}}
Thank you for your attention!
< Questions?