3 ms·
Firstly, that can happen with fixed-length arrays or even without arrays, too. Secondly, I don't have access to the official standard, but it would surprise me
by Someone 14y ago
Firstly, that can happen with fixed-length arrays or even without arrays, too.
Secondly, I don't have access to the official standard, but it would surprise me if it required VLA's to be stack allocated. That would give implementers of the language too little leeway.
In fact, I see no clear reason why the standard would mention the word 'stack' at all. A quick check of the candidate PDF of the standard seems to confirm that, but that's not the real standard, and it may be a shortcoming of the iOS PDF reader.