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

how to find anagram without using string functions using only loops in c programming

3141


What is const volatile variable in c?

986


What is structure data type in c?

978


Write a program to generate random numbers in c?

1053


Write a code to generate a series where the next element is the sum of last k terms.

1174


What is default value of global variable in c?

941


How can I list all of the predefined identifiers?

931


What are pointers really good for, anyway?

1020


What is c method?

944


Is r written in c?

1116


What are header files in c programming?

1081


What is the difference between procedural and declarative language?

1098


What is the process of writing the null pointer?

984


hi, which software companys will take,if d candidate's % is jst 55%?

2050


int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer

996