open source code
Posted On at by milanRecourse
Recourse or circular definition is used a lot in C++. Recourse is process of invoke the function. Function which invoke is called recourse. For example factorial on number:
int fact(int n){ |
When the function invoke, the new local variables and parameters locate on steak in memory. The recourse doesn’t make a new copy from the function, just the parameters are new. After every return the variables the old variables are deleted from the steak. The recourse can be vary slowly process. Too much recourse’s invokes on the function can bring to congestion in a steak. Quicksort is algorithm for sorting which works in a principle of recourse.