Theocacao
Leopard
Design Element
Comment on "Intro to Memory and Arrays in C"
by Tom Bradford — Feb 21
If you're going to talk about C strings, 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. We don't live in that world anymore, and so wchar_t arrays are called for... 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.
Back to "Intro to Memory and Arrays in C"
Design Element

Copyright © Scott Stevenson 2004-2015