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 wrong in this statement? scanf(ā%dā,whatnumber);
What is the argument of a function in c?
Is python a c language?
What is static identifier?
all c language question
What does typedef struct mean?
Explain how can a program be made to print the name of a source file where an error occurs?
Explain what is the benefit of using #define to declare a constant?
Write a program to swap two numbers without using third variable in c?
What is the difference between ++a and a++?
In which language linux is written?
What is the purpose of 'register' keyword in c language?
How pointer is different from array?
Can variables be declared anywhere in c?
Give me the code of in-order recursive and non-recursive.