How to represent a recursive function with a flowchart?

I need to represent a recursive function in a flowchart. My problem is that I donโ€™t know how to indicate that a function can call itself on several elements at a time (for example, for a function that scans charts). Anyone have any suggestion?

+5
source share
1 answer

In a flowchart, you usually donโ€™t add a few calls for things like loops, you just indicate that the code can repeat until the condition is met. Thus, for a recursive function, this would be similar: the base case is an ordinary step, and the recursive step coincides with the loop. See this for an example.

+2

All Articles