delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/05/19:32:55

From: Vic <tudor AT cam DOT org>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Bug in DJGPP?
Date: Sun, 05 Oct 1997 17:34:22 -0400
Organization: Communications Accessibles Montreal, Quebec Canada
Lines: 16
Message-ID: <343807DE.583B@cam.org>
References: <3437974D DOT E060AD2A AT mail DOT linkease DOT com DOT tw> <3437987F DOT 2592977D AT mail DOT linkease DOT com DOT tw>
NNTP-Posting-Host: dynppp-129.hip.cam.org
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Liche wrote:
> 
> Liche wrote:
> 
> I am sorry, it displays 21 ten times if I use auto short count = 20;,
> instead of 21 22 23...
> Anyways, this is still a weird result.  It seems that if I don't
> initialize a variable to a value then it is static, even if i use auto
> short count; ......
> Can anybody else reproduce this?
yes, me. And indeed I find it weird. Cause if I say something like auto
int x; then I print the value of X it will be something random.
-- 
--> http://www.cam.org/~tudor <--
Go ahead and build another Messiah
We dig another grave...

- Raw text -


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