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 to find anagram without using string functions using only loops in c programming
What is const volatile variable in c?
What is structure data type in c?
Write a program to generate random numbers in c?
Write a code to generate a series where the next element is the sum of last k terms.
What is default value of global variable in c?
How can I list all of the predefined identifiers?
What are pointers really good for, anyway?
What is c method?
Is r written in c?
What are header files in c programming?
What is the difference between procedural and declarative language?
What is the process of writing the null pointer?
hi, which software companys will take,if d candidate's % is jst 55%?
int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer