www.delorie.com/archives/browse.cgi | search |
Date: | Fri, 27 Feb 1998 16:21:44 -0600 (CST) |
From: | Andrew Deren <aderen AT eecs DOT uic DOT edu> |
To: | djgpp <djgpp AT delorie DOT com> |
Subject: | Re: goto statement and labels |
In-Reply-To: | <34F714DE.5C44F298@evitech.fi> |
Message-ID: | <Pine.GSO.3.96.980227162020.996B-100000@2254m05.eecs.uic.edu> |
MIME-Version: | 1.0 |
> Ricki Lee King wrote: > > > > how do i do this? > > > > label; > > expression; > > goto label; you can do it like that: label: // some expressions goto label; but it would be better to put it in the loop while (something) { // some expressions } and you'll get the same effect > > > -- > Erno Tuomainen void hello(void) { > ernomat AT evitech DOT fi while(1) printf("Hello > Linux!\n"); > http://www.evitech.fi/~ernomat } >
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |