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: Declaring automatic variables inside a while loop


Andrea 'Fyre Wyzard' Bocci wrote:


By the way, in your example, you are setting the loop iterator (i) to an uninitialized local (j) which isn't going to work.
Well, it's going to "work", if you don't care what the actual behaviour is - ie., if the code hangs at random executions...
^^

I assume you meant eg here (i.e. this is an example), since this is only
one of many horrible things that could happen :-)




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