4 ms·
Yes I know. I've been coding in C for 40 years and C++ for 30 years. It's a simple technique that applies in particular, rather simple, situations with both lan
by billforsternz 2y ago
Yes I know. I've been coding in C for 40 years and C++ for 30 years. It's a simple technique that applies in particular, rather simple, situations with both languages.
Edit: The real point is, what was it about his answer that was hated/downvoted? Surely not the fact the sizeof(a)/sizeof(a[o]) requires a little knowledge and care?
- olvy0 2y agoI don't get it either. From sibling comments here I think that it's the fact the bulk of his answer was about C++ while the question was about C. But he noted that in his answer and separated the cases, so I don't see what was all the fuss about. It's certainly not a really bad answer, like that Lundin guy says in the comments. Must be some sort of SO culture we're missing. Because in normal day-to-day conversation between reasonable adults, this would have been an acceptable answer.