Why the use of alloca() is discouraged?

Answer Posted / sathish kumar

Hi All,

If you use alloca inside a function when it retuns from
function it will be resulting in memory leak. Thats why
its discouraged to use.

Thanks & Regards
Sathish Kumar

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ctrl c called?

605


Are bit fields portable?

681


How many loops are there in c?

588


What is a function in c?

579


What is sizeof array?

619






Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?

987


A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(

1748


What is a built-in function in C?

803


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

678


How do you use a 'Local Block'?

730


What should malloc(0) do?

619


What is the general form of #line preprocessor?

592


What are qualifiers in c?

578


Can we declare function inside main?

572


Is that possible to add pointers to each other?

907