3 ms·
> How do you "allocate" memory on stack? I have no idea why you would be asking me this, unless you are quibbling over the idiom associating the verb “allocate
by pascal_cuoq 14y ago
> How do you "allocate" memory on stack?
I have no idea why you would be asking me this, unless you are quibbling over the idiom associating the verb “allocate” and the complement “on the stack”, in which case Google should be able to find you about 56000 uses, in context, of this precise association.
> The thing about C is that programmer should
> do check size before calling function with double arr[n]. > Isn't that point of C?
What part of “because of parameters outside the programmer's control” do you not understand?
What limit, in a portable C program, do you check the value of n against before allocating a VLA of size n?