www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/09/01/13:15:12

Lines: 13
X-Admin: news AT aol DOT com
From: sterten AT aol DOT com (Sterten)
Newsgroups: comp.os.msdos.djgpp
Date: 01 Sep 2001 17:10:37 GMT
Organization: AOL http://www.aol.com
Subject: variables
Message-ID: <20010901131037.03480.00004579@mb-fp.aol.com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

why are variables not initialized as 0 ?
is there any reason, why "int x" can be better than "int x=0"  ?

why do we have to define variables at all ? In BASIC I can use
variables without declaring them. (default = float)

I've read, that the new processors will have more registers.
Then we might use register-variables much more often ?
If current GCC/DJGPP uses only -say- half of the registers available ,
then can't they use e.g. all loop-variables as register by default ?


Guenter

- Raw text -


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