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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is #include cctype?

817


How can I sort more data than will fit in memory?

883


How can I invoke another program (a standalone executable, or an operating system command) from within a c program?

872


What is the time and space complexities of merge sort and when is it preferred over quick sort?

875


What is header file definition?

815


What is a program flowchart and explain how does it help in writing a program?

967


What is the use of a ‘’ character?

803


Where are the auto variables stored?

851


What is the maximum no. of arguments that can be given in a command line in C.?

890


a c code by using memory allocation for add ,multiply of sprase matrixes

2524


the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset

860


What are loops in c?

768


Why is extern used in c?

829


What is typedef example?

843


how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?

1691