Skip to main content
Post Closed as "Not suitable for this site" by Juraj, Kwasmich, ocrdu, sempaiscuba, timemage
Source Link

Can you create an array for functions?

Let's say I want to create 10 functions, named Function1, Function2 until 10. Each function is used if a certain variable is equal to its number. Rather than using individual functions, I was wondering if its possible to use some sort of array concept for functions when it comes to naming? I tried reading about it and saw pointers but I honestly didn't understand what I saw about it because I'm not that adept to the language yet.