Function Ordering Example

Last modified by chrisby on 2024/03/04 20:47

Say func_1 is called first, so it is at the top. Next is func_2. Since func_4 is called before func_3, the definition of func_4 is above the definition of func_3.

func_1() {
  func_2()
  func_3()
}

func_2() {
  func_4
  ...
}

func_4() {
  ...
}

func_3(){
  ...
}