Can anyone tell what is stack overflow? what precaution we
should take?



Can anyone tell what is stack overflow? what precaution we should take?..

Answer / vishnu nayak

Memory is divided into the following catageory

Stack Area
Heap Area
Data Area
Code Area

All Local Variables, formal parameters, return address of a
function are stored at stack area.
Stack Over flow mainly occurs in Recurssion. For each call
of the function a seperate set of Local variables, Formal
parameters and return address are stored at stack area.

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More C Interview Questions

What are compound statements?

0 Answers  


5) Write a program that takes a 3 digit number n and finds out whether the number 2^n + 1 is prime, or if it is not prime find out its factors.without using big int and exponential function

1 Answers   TCS,


whether itis a structured language?

1 Answers   Microsoft,


What does int main () mean?

0 Answers  


Can I initialize unions?

0 Answers  






What is the difference between functions getch() and getche()?

0 Answers  


what is foreign key in c language?

1 Answers   ADP,


Write the test cases for checking a variable having value in range -10.0 to +10.0?

0 Answers   Bosch,


write a program wch produces its own source code aas its output?

1 Answers   IonIdea,


int main() { int i=1; switch(i) { case '1': printf("hello"); break; case 1: printf("Hi"); break; case 49: printf("Good Morning"); break; } return 0; }

3 Answers  


develop algorithms to add polynomials (i) in one variable

0 Answers   Ignou, TCS,


What are comments and how do you insert it in a C program?

0 Answers  


Categories