The goto statement is also known as jump statement that makes a program procedure to jump any where from anywhere within the program. It is sometime also called unconditional jump statement.
In this program, it takes name of a person and then prints it. Here "jump:" is a label that goto statement will transfer the step when encountered. So, after printing the name, it asks to continue and if a user enter y or Y the goto statement transfer the step to that label and if any other key is pressed the program will print Visit Again.
Home »
Chapter3 C program
» Goto Statement or Jump statement in C
No comments:
Post a Comment
If you have any doubt, let me know...