I'm still an amateur.
Is it possible to write a program such that it will automatically execute the function in queue base on their priority even if user programmed it randomly?
Code:function1(){ very_important; } function2(){ important; } function3(){ less_important; } int main() { // Programmed by user function3; function1; function2; //Output: Program will execute function1, 2 and lastly 3. }