Answer Posted / johnson
Sorry, that is not strictly correct. According to the man page:
"The alloca() function allocates size bytes of space in the
stack frame of the caller, and returns a pointer to the
allocated block. This temporary space is automatically freed
when the caller returns."
Now this is the real reason:
" If the allocated block is beyond the current stack limit,
the resulting behavior is undefined."
Is This Answer Correct ? | 12 Yes | 0 No |
Post New Answer View All Answers
Why #include is used in c language?
What is array in c with example?
C language questions for civil engineering
What is void c?
Is null a keyword in c?
Write a program to check palindrome number in c programming?
What is bubble sort in c?
What is sizeof array in c?
What is table lookup in c?
how can f be used for both float and double arguments in printf? Are not they different types?
What is the value of h?
What is memory leak in c?
What is static volatile in c?
Why void main is used in c?
Is linux written in c?