delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/11/11/20:00:18

From: chris319 <chris319 AT delorie DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Array Size Question
Date: Sat, 11 Nov 2000 16:56:00 -0800
Organization: MindSpring Enterprises
Lines: 8
Message-ID: <0iqr0tso1m4of332674o0dssc7kt41c7qo@4ax.com>
References: <dphq0tk3q379loiideccpcmrn4ga535nfl AT 4ax DOT com> <973951101 DOT 305564 AT shelley DOT paradise DOT net DOT nz> <0gpr0t4krbjo38b5hlpelt5ofq1bf5ec78 AT 4ax DOT com>
NNTP-Posting-Host: a5.79.71.71
Mime-Version: 1.0
X-Server-Date: 12 Nov 2000 00:55:15 GMT
X-Newsreader: Forte Agent 1.8/32.548
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

>The problem I'm having is that I set up an array of 1024 doubles, I explicitly
>initialize all elements to zero using a "for" loop, and bizarre non-zero values
>are somehow creeping into array elements above 512.

D'oh! I was testing the wrong condition in my "for" loop! That's what I get for
writing code too close to bedtime :-)

Thanks for the informative replies, though.

- Raw text -


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