| delorie.com/archives/browse.cgi | search |
| From: | Erno Tuomainen <ernomat AT evitech DOT fi> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: goto statement and labels |
| Date: | Fri, 27 Feb 1998 19:32:46 +0000 |
| Organization: | Just another independent Linux user |
| Lines: | 20 |
| Message-ID: | <34F714DE.5C44F298@evitech.fi> |
| References: | <3 DOT 0 DOT 5 DOT 32 DOT 19980225212841 DOT 007c1450 AT pop DOT iquest DOT net> |
| NNTP-Posting-Host: | dialin-0-19.evitech.fi |
| Mime-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Ricki Lee King wrote:
>
> how do i do this?
>
> label;
> expression;
> goto label;
Sorry, no answer for your question but...
...please *do not* use goto command in your programs. It's very bad
programming style and it makes the program much harder to
understand/debug. Use functions instead.
--
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 |