- 1
What is stack memory
2 Réponses
+ 1
static memory stores all the local variables and the function calls made in a program.
Normal variable declarations like,
int a;
int b[5];
happen in Stack Memory during compile time.
Stack Memory is generally small in size(usually less than 8MB).Small size of the Stack Memory leads to memory overflow in situations where we try to use large amount of space(declare really large arrays or an array of a structure) or in recursive programs where the depth of recursion becomes really large( because function calls are also stored in the Stack Memory)
0
Serial posting could be compared to spam ^^
Seriouly: 5 posts next to each other is near close to abuse :P
https://www.sololearn.com/Discuss/603868/?ref=app
https://www.sololearn.com/Discuss/603872/?ref=app
https://www.sololearn.com/Discuss/603877/?ref=app
https://www.sololearn.com/Discuss/603885/?ref=app
https://www.sololearn.com/Discuss/603887/?ref=app
https://www.sololearn.com/Discuss/603891/?ref=app