Groups | Search | Server Info | Login | Register


Groups > comp.lang.c.moderated > #483

why do some writers declare and define variables separately

From yoodavid <odimegwudavid@yahoo.fr>
Newsgroups comp.lang.c, comp.lang.c.moderated
Subject why do some writers declare and define variables separately
Followup-To comp.lang.c
Date 2013-09-18 16:42 -0500
Organization Aioe.org NNTP Server
Message-ID <clcm-20130918-0002@plethora.net> (permalink)

Cross-posted to 2 groups.

Followups directed to: comp.lang.c

Show all headers | View raw


Can anyone tell me why some writers decide to declare and 
write definitions for variables separately, rather than 
together?

That is:
int definelater;
...
definelater = 0;

rather than:
int definelater = 0;

wouldn't the later reduce code lines? 
thanks. 
-- 
to authenticate is not to authorize. be responsible.
-- 
comp.lang.c.moderated - moderation address: clcm@plethora.net -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line.  Sorry.

Back to comp.lang.c.moderated | Previous | NextNext in thread | Find similar


Thread

why do some writers declare and define variables separately yoodavid <odimegwudavid@yahoo.fr> - 2013-09-18 16:42 -0500
  Re: why do some writers declare and define variables separately mt <mahdert@gmail.com> - 2013-10-03 13:37 -0500
    Re: why do some writers declare and define variables separately James Kuyper <jameskuyper@verizon.net> - 2013-10-08 16:38 -0500
      Re: why do some writers declare and define variables separately ThosRTanner <ttanner2@bloomberg.net> - 2013-10-22 16:36 -0500
        Re: why do some writers declare and define variables separately Jens Schmidt <Jens.Schmidt-HH@gmx.de> - 2013-10-24 20:10 -0500
        Re: why do some writers declare and define variables separately Francis Glassborow <francis.glassborow@btinternet.com> - 2013-10-24 20:10 -0500
          Re: why do some writers declare and define variables separately Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2013-10-25 19:36 -0500

csiph-web