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
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
Explain how can I remove the trailing spaces from a string?
Is there a way to switch on strings?
cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration
any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above
If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.
What are the 5 elements of structure?
What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?
Can a void pointer point to a function?
How can I remove the trailing spaces from a string?
Why is extern used in c?
Why does this code crash?
What is a class c rental property?
What are compound statements?
main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above