14 ms·
The example shown in the article is in fact undefined behavior: 6.3.2.1,p2 If the lvalue designates an object of automatic storage duration that could have bee
by aciuix 11y ago
The example shown in the article is in fact undefined behavior:
6.3.2.1,p2 If the lvalue designates an object of automatic storage duration that could have been declared with the register storage class (never had its address taken), and that object is uninitialized (not declared with an initializer and no assignment to it has been performed prior to use), the behavior is undefined.
- _yosefk 11y agoThe funny thing is, returning it just to discard it constitutes "use", apparently.