X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Message-ID: <20040727194057.67565.qmail@web50701.mail.yahoo.com> Date: Tue, 27 Jul 2004 12:40:57 -0700 (PDT) From: Lets Go Canes Subject: Re: assembly code of the "strange error" - program To: djgpp AT delorie DOT com In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk Hi all. --- Paul Wilkins wrote: > DJ Delorie wrote: > >> >int U[99]; memset(U, 4, sizeof(U)); > >> >memset fills the memory locations used by U with the value 4. > > > > No, it sets it to 0x04040404. > > So long as it's an int array, where is the difference? Is it in my > understanding of potential implications? The difference is that if int is 16 bits, then each element of U has been set to 0x0404, which is not equal to 0x0004. ===== -------------- Lets Go Canes! __________________________________ Do you Yahoo!? Y! Messenger - Communicate in real time. Download now. http://messenger.yahoo.com