Goto statement is used for control transfer.where control transfer is meant for looping (repeating a set of statements).this looping may become infinite if you do not control it with a condition.goto is the control transfer statement in clangauge .
Goto label; …. ….. …….. ……………… Label; Statement;
here , the label is an identifier. when there is goto statement then the controller skips all in the middle and jumps to the label.the label should be en with a semi-colon(;).no two statements should have same label.
a goto statement breaks the normal sequencial execution of a program.if the lable comes before the goto statement ,a loop will be formed .to aviod memory buffer over flow ,we should goto inside if condition