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

Explain what is output redirection?

0 Answers  


Why is #define used?

0 Answers  


difference between semaphores and mutex?

1 Answers  


Explain what are bus errors, memory faults, and core dumps?

0 Answers  


Define VARIABLE?

0 Answers   ADP,






Write a program to implement queue.

0 Answers   Aricent,


#include<stdio.h> void main() { int a=10,b=20,c=30; printf("%d",scanf("%d%d%d",&a,&b,&c)); } what is the output for this?

4 Answers   IIIT,


Can the curly brackets { } be used to enclose a single line of code?

0 Answers  


Write a program to print all the prime numbers with in the given range

8 Answers   ABC, College School Exams Tests, TCS,


Write a c code segment using a for loop that calculates and prints the sum of the even integers from 2 to 30, inclusive?

4 Answers  


What is a null pointer in c?

0 Answers  


i need all types of question paper releted to "c" and other language.

0 Answers  


Categories