3 ms·
This made me think of segmentation faults caused by stack overflow due to allocating an array with too many elements on the stack, which is also "fun" to debug
by aepiepaey 9y ago
This made me think of segmentation faults caused by stack overflow due to allocating an array with too many elements on the stack, which is also "fun" to debug until you learn about that class of problems.
That applies to both C and C++ though.
- pjmlp 9y agoAnd one of the reasons why the VLAs introduced in C99 became optional in C11.