Call function with a parameter from another function
I have a function that repeatedly calls another function. The second function has a bool parameter that changes the way it behaves, so when I call the first function I want to have a parameter that specifies the way the second function behaves. void Function1(int n, bool differentBehavior = false) { int a = Function2(n,… Read More Call function with a parameter from another function