This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Why does 2nd loop only print values 10-19 and not 0-19?
- From: Paul Smith <paul at mad-scientist dot net>
- To: L A Walsh <gcc at tlinx dot org>, gcc at gcc dot gnu dot org
- Date: Sat, 21 Jan 2017 16:33:28 -0500
- Subject: Re: Why does 2nd loop only print values 10-19 and not 0-19?
- Authentication-results: sourceware.org; auth=none
- References: <5883D1CB.1060807@tlinx.org>
- Reply-to: paul at mad-scientist dot net
On Sat, 2017-01-21 at 13:25 -0800, L A Walsh wrote:
> It may be this should go to "gcc-help", due to my
> not seeing my error, but....
Probably better to start there... if it's really a GCC bug you'll be
quickly redirected here.
> for (i==0; i < sizeof(source)/(2*sizeof(source[0])); ++i) {
^^
This should be "for (i=0; ...".