What potential issue should be considered when using recursion in C programs?

  • Compiler error
  • Inefficient use of CPU
  • Memory leak
  • Stack overflow error
When using recursion in C, one potential issue to consider is a stack overflow error. Recursion can lead to a rapidly growing stack, which may exhaust the available memory and cause a program to crash.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *