I want to call the function call3 from the function call2 passing it the function pointer.
The way I have written is giving me errors and I konow it's wrong, I just don't know how to do it, even if it's possible
@mbozzi thank you for the link, that had some very useful insights that I will have to do some research because I realized that I don't actually understand them.
From what I understood reading the thread answers, I am using function pointers, which is discouraged in C++ as it is a C code. I will do some reasearch and see if there is a C++ way of better way of doing this.
However, in the meantime my problem still stands and if someone knows how to do(in a very C++ way) what im trying to do it would be of a great help to point it out to me.