main( )
{
printf ( “I am in Heaven” ) ;
goto hell ;
printf ( “Want to reach Heaven!” ) ;
}
fun( )
{
hell:
printf ( “You are in Hell” ) ;
}The compiler would flash an error “Undefined label hell”. This is because goto statement cannot jump across the functions. In other words, goto can be used to shift the control only within the function. Hence the error.