delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/09/20/08:06:00

Date: Tue, 20 Sep 1994 06:40:11 -0400
From: Cuthalion / Sliced Bread <enrico AT max DOT tiac DOT net>
To: djgpp AT sun DOT soe DOT clarkson DOT edu, S_Eckart AT lis DOT e-technik DOT tu-muenchen DOT de
Subject: Re: strange linker behavior

SE> int delay;
SE> 
SE> main()
SE> {
SE>   printf("%d\n",delay);
SE> }
SE> 
SE> I would have expected to get a 0 as output, and in fact this was the
SE> case until v1.11m5. The current version prints a large negative
SE> number...
   I don't think that there's any provision in the C language for what 
uninitialized variables
start out as.  delay could end up as anything!  

- Raw text -


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