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
Difference between MAC vs. IP Addressing
Explain how can you be sure that a program follows the ansi c standard?
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
formula to convert 2500mmh2o into m3/hr
using for loop sum 2 number of any 4 digit number in c language
p*=(++q)++*--p when p=q=1 while(q<=6)
What is the difference between ++a and a++?
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?
What is the use of the function in c?
What is a structure member in c?
Why pointers are used?
What is the purpose of scanf() and printf() functions?
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
What are types of structure?
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......