summaryrefslogtreecommitdiff
path: root/reference/C/SYNTAX/goto.html
diff options
context:
space:
mode:
Diffstat (limited to 'reference/C/SYNTAX/goto.html')
-rw-r--r--reference/C/SYNTAX/goto.html59
1 files changed, 59 insertions, 0 deletions
diff --git a/reference/C/SYNTAX/goto.html b/reference/C/SYNTAX/goto.html
new file mode 100644
index 0000000..156534a
--- /dev/null
+++ b/reference/C/SYNTAX/goto.html
@@ -0,0 +1,59 @@
+<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>