About 351,000 results
Open links in new tab
  1. How Recursion works in C - Stack Overflow

    In C recursion is just like ordinary function calls. When a function is called, the arguments, return address, and frame pointer (I forgot the order) are pushed on the stack.

  2. What is recursion and when should I use it? - Stack Overflow

    In the majority of major imperative language implementations (i.e. every major implementation of C, C++, Basic, Python, Ruby,Java, and C#) iteration is vastly preferable to recursion. To see …

  3. Calculating Fibonacci Numbers Recursively in C - Stack Overflow

    Aug 20, 2016 · Well, I preface that recursive function is not an efficient method to calculate Fibonacci and it may be used for dev training/demonstrations purposes only, because every …

  4. c++ - Can a recursive function be inline? - Stack Overflow

    Oct 17, 2008 · C and C++ prevent recursive invocations but a translation unit doesn't become illegal by containing macro code that looks like it would have been recursive. In assemblers, …

  5. C recursive function palindrome - Stack Overflow

    Oct 4, 2017 · I'm trying to do a recursive function with C to check if a word is a palindrome or not (read in both ways). It's the first time I use this kind of function, but I have a problem, I don't …

  6. C Recursive Function for prime number with just one parameter

    Nov 8, 2014 · Im trying to make a function to check if a number is prime number or not, using recursion. The best two examples are these two programs (one without recursion, one using …

  7. c - Returns in a recursive function - Stack Overflow

    May 29, 2017 · A recursive function returns a call to itself at the i + 1 step of the process. In order to avoid an infinite loop, you have to make sur you have a break condition, which leads to a …

  8. Determining complexity for recursive functions (Big O notation)

    Jun 7, 2021 · For the fifth function, there are two elements introducing the complexity. Complexity introduced by recursive nature of function and complexity introduced by for loop in each …

  9. c passing pointer to recursive function - Stack Overflow

    Jan 31, 2012 · So here i am struggling with this program, i was trying to find out how can I use a array of pointers declared into main, in a recursive function to memorize data, the question …

  10. c recursive function to check if a string is palindrome

    Jul 7, 2023 · I am doing a project in C programming language and one of the tasks require me to recursively check if a string is a palindrome. I wrote some code but I don't get correct output.

Refresh