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
How will you divide two numbers in a MACRO?
How can I call fortran?
What are examples of structures?
What is a program?
What is volatile keyword in c?
What is string function c?
What is the difference between #include and #include 'file' ?
How can I do serial ("comm") port I/O?
What is use of null pointer in c?
What is .obj file in c?
What is formal argument?
What is calloc in c?
What is operator promotion?
What are bitwise shift operators in c programming?
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon