--- In AVR-Chat@yahoogroups.com, "Don Kinzer" <dkinzer@...> wrote: > > By the way, some would prefer to > write the statement above slightly > differently, e.g. > lcd_putc(pgm_read_byte_near(BootString + i)); Yes indeed, and I would try to keep those people away from someone learning the C language. I am a strong advocate of writing the code in a way that explains what you expect it to do. If you're locating an element in an array, I believe that you should use array notation to do it, not pointer arithmetic. This avoids, for example, the inevitable confusion of inexperienced C programmers when they find that p += 1 may add two or four to p, depending on the size of the object it points to. Pleeeeeeeeeease, don't let's start an argument about this. I put the above forward only as my opinion (although not humble - sorry) and fully accept the validity of other people's opinions. Graham.
Message
Re: WinAVR / GCC question re Stack
2009-03-25 by Graham Davies
Attachments
- No local attachments were found for this message.