Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Why the use of alloca() is discouraged?

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


Please Help Members By Posting Answers For Below Questions

Difference between MAC vs. IP Addressing

1200


Explain how can you be sure that a program follows the ansi c standard?

1542


int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;

1929


formula to convert 2500mmh2o into m3/hr

1051


using for loop sum 2 number of any 4 digit number in c language

2418


p*=(++q)++*--p when p=q=1 while(q<=6)

1816


What is the difference between ++a and a++?

1274


What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?

1547


What is the use of the function in c?

1073


What is a structure member in c?

1052


Why pointers are used?

1116


What is the purpose of scanf() and printf() functions?

1299


Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

2232


What are types of structure?

1171


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......

1971