4 ms·
This being about C++ and RAII lifetimes, the problem doesn't apply to C. The only similar thing in C would be compound literals. Those have a lifetime like auto
by jstimpfle 3y ago
This being about C++ and RAII lifetimes, the problem doesn't apply to C. The only similar thing in C would be compound literals. Those have a lifetime like automatic variables (i.e. to the end of the block).
- gumby 3y agoslaps forehead d’oh! My comment was boneheaded in regards to C