You are right. OP has it backwards.  gcc treats someArray[0] almost the same as someArray[].<p><a href="https:&#x2F;&#x2F;gcc.gnu.org&#x2F;onlinedocs&#x2F;gcc-5.1.0&#x2F;gcc&#x2F;Zero-Length.html#Zero-Length" rel="nofollow">https:&#x2F;&#x2F;gcc.gnu.org&#x2F;onlinedocs&#x2F;gcc-5.1.0&#x2F;gcc&#x2F;Zero-Length.htm...</a><p>Other compilers might have similar treatment for someArray[0].