<title>The GOTO keyword.</title> <head> <script language="JavaScript"> </script> </head> <body bgcolor="#ffffcc"> <hr> <center> <h1>The GOTO keyword.</h1> </center> <hr> Well, I have resisted adding <b>goto</b> for a whole year. But tonight I have had a couple of beers and I am ready to go for it. It must be said that most programmers will claim that <b>goto</b> is never required and I dont have reason to disagree, but you may like to differ. <h2>goto syntax</h2> <pre> goto lab1; lab1: </pre> goto allows the program to 'jump' to a named label, in this case <b>lab1</b>, the target label MUST be terminated with a : (colon). <hr> <h2>An Example.</h2> <a href="../EXAMPLES/goto.c"><img src="../../GRAPHICS/computer.gif"></a> goto example. <p> <hr> <p> <center> <table border=2 width="80%" bgcolor="ivory"> <tr align=center> <td width="25%"> <a href="../cref.html"> Top</a> </td><td width="25%"> <a href="../master_index.html"> Master Index</a> </td><td width="25%"> <a href="keywords.html"> Keywords</a> </td><td width="25%"> <a href="../FUNCTIONS/funcref.htm"> Functions</a> </td> </tr> </table> </center> <p> <hr> <address>Martin Leslie </address><p> </body> </html>