Re:How to find size of an array in C without sizeof
by noselasd on Tuesday December 27, 2016 @04:14AM
(#13262137)
Not at all - that would be implementation defined behavior.
These days, compilers quite often speculate on undefined behavior, generating code as if the undefined part cannot happen - the result is that your code is going to do stuff you pretty much can not know or expect.
These days, compilers quite often speculate on undefined behavior, generating code as if the undefined part cannot happen - the result is that your code is going to do stuff you pretty much can not know or expect.