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

How can you access memory located at a certain address?

0 Answers  


Write a simple program to find the size of different basic data types in C.

3 Answers  


What is return type in c?

0 Answers  


What is the explanation for the dangling pointer in c?

0 Answers  


What is the hardest programming language?

0 Answers  






simple c program for 12345 convert 54321 with out using string

7 Answers   TCS,


code for bubble sort?

1 Answers  


Can a pointer be null?

0 Answers  


Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58

0 Answers   Zoho,


What are the features of c languages?

0 Answers  


in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none

0 Answers  


What is string function in c?

0 Answers  


Categories