Programming Languages
C
Objective
Mar 08, 2013
What will be output of the following c code?
void main()
{
clrscr();
goto abc;
printf("main");
getch();
}
void dispaly(){
abc:
printf("display");
}
Detailed Explanation
Label of goto cannot be in other function because control cannot move from one function to another function directly otherwise it will show compiler error: unreachable labe.l
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts