www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/02/18:03:11

From: "David Christensen" <dchrist AT dnai DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Help needed with sizeof command.
Date: Sat, 2 Jan 1999 14:51:06 -0800
Organization: DNAI ( Direct Network Access )
Lines: 20
Message-ID: <76m889$6uc$1@pollux.dnai.com>
References: <368E9EE0 DOT CA5E941B AT northcoast DOT com>
NNTP-Posting-Host: dnai-207-181-210-28.dialup.dnai.com
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

David Arnold wrote in message
<368E9EE0 DOT CA5E941B AT northcoast DOT com>...

>int days[]={31,28,31,30,31,30,31,31,30,31};

only 10 months?

> for(index=0;index < sizeof days/(sizeof(int));index++)

You need parenthesis around "days"  ==>  index < sizeof(days) /
sizeof(int)


David
--
dchrist AT dnai DOT com




- Raw text -


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