This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Why does 2nd loop only print values 10-19 and not 0-19?


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; ...".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]