2 ms·
Eh... I'm not really buying it. I think it was an honest mistake. C'mon; this makes that snippet harder to read? char input[SIZE]; I really don't think
by EpicEng 12y ago
Eh... I'm not really buying it. I think it was an honest mistake. C'mon; this makes that snippet harder to read?
char input[SIZE];
I really don't think so. I'm all for simplifying example code to get the core concept across, but I wouldn't go as far as to invoke undefined behavior. I also don't understand the use of scanf. At all. A seasoned, competent C user would never consider using scanf.
Anyway, I didn't mean to derail things too much here. It's really a nitpick and has little to do with the article itself.