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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Define circular linked list.

567


Why isnt any of this standardized in c?

629


Which is best book for data structures in c?

592


What is the argument of a function in c?

569


What is the difference between a string and an array?

703






In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)

1626


What is header file definition?

563


What is structure in c explain with example?

630


Explain what does the function toupper() do?

629


What are dangling pointers in c?

633


what do you mean by enumeration constant?

594


an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational

805


I need a sort of an approximate strcmp routine?

655


Where are local variables stored in c?

568


Explain how do you determine the length of a string value that was stored in a variable?

664