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?