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
What is C language ?
What are keywords c?
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
How do you use a 'Local Block'?
What is the difference between c and python?
What does & mean in scanf?
Why do we need volatile in c?
What is an arrays?
What is atoi and atof in c?
Lists the benefits of c programming language?
writ a program to compare using strcmp VIVA and viva with its output.
What is anagram in c?
List the variables are used for writing doubly linked list program.
Is null equal to 0 in sql?
What are header files why are they important?