What is alloca() and why is its use discouraged?



What is alloca() and why is its use discouraged?..

Answer / guest

alloca() allocates memory which is automatically freed when
the function which called alloca() returns. alloca() cannot
be written portably, is difficult to implement on machines
without a stack, and fails under certain conditions if
implemented simply.

Is This Answer Correct ?    5 Yes 0 No

Post New Answer

More C Interview Questions

Is main an identifier in c?

0 Answers  


how to find out the biggest element (or any other operation) in an array which is dynamic. User need not to mention the array size while executing.

3 Answers  


What is the sizeof () a pointer?

0 Answers  


What is the use of a semicolon (;) at the end of every program statement?

1 Answers  


Do you know pointer in c?

0 Answers  






#include<stdio.h> #include<conio.h> void main() { char ch='\356'; printf("%d",ch); } o/p=-18 why?plz.explain

2 Answers  


What is new line escape sequence?

0 Answers  


Do you know the use of 'auto' keyword?

0 Answers  


How can I recover the file name given an open stream or file descriptor?

0 Answers  


What is the difference between functions getch() and getche()?

0 Answers  


which operator having highest precedence? a.)+ b.)++ c.)= d.)%

4 Answers  


What is 'bus error'?

0 Answers  


Categories