Design Element
Comment on "Intro to Memory and Arrays in C"
by Scott Stevenson — Feb 21
I think it's a bad idea to start people off with the traditional char array. It teaches them bad habits right off the bat, and nobody needs yet another bad habit.

For better or worse, there's a large quantity of code that uses this approach -- perhaps most notably, many of the examples on ADC. There's nothing to be gained by pretending that's not the case. But maybe I'll add a few more notes on the subject.

I'd probably just eliminate the 'string' talk altogether, because unfortunately, there are just too many different ways of manipulating the string concept in the C/C++ world

I can respect what you're saying, but I just don't agree with the conclusion. It's a matter of walking before you can run.
Back to "Intro to Memory and Arrays in C"
Design Element

Copyright © Scott Stevenson 2004-2015