delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/26/03:46:43

From: G DOT DegliEsposti AT ads DOT it
To: djgpp AT delorie DOT com
Message-ID: <C12565B7.002FD733.00@vega.ads.it>
Date: Thu, 26 Feb 1998 09:45:54 +0100
Subject: Re: goto statement and labels
Mime-Version: 1.0




>how do i do this?
>
>label;
>expression;
>goto label;
the correct syntax is label: and not label; (colon in stead of semi-colon)

Since you say you are new to C, I suggest you not to abuse of the goto
statement, because this can lead to unreadable programs very fast, try to
use structured statements (while, for, ...) as much as possible...

>i know this is a C question and not a djgpp question.

...then why didn't you post it on comp.lang.c ? :-)

ciao
  Giacomo




- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019