Q:

What is the cause of the stack overflow?

0

What is the cause of the stack overflow?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Answer:

In the embedded application we have a little amount of stack memory as compare to the desktop application. So we have to work on embedded application very carefully either we can face the stack overflow issues that can be a cause of the application crash.

Here, I have mentioned some causes of unwanted use of the stack.

  • Improper use of the recursive function.
  • Passing to many arguments in the function.
  • Passing a structure directly into a function.
  • Nested function calls.
  • Creating a huge size local array.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Embedded C interview questions and answers (2022)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What is the difference between the I2c and SPI com... >>
<< What is the stack overflow?...