In C, if we have a point to an integer, we can write *ptr=4 (assume malloc done).
Suppose now to have a pointer to a function, name it fPtr.
By following the same way as the example before, is it possible to write something like "*fPtr=new_function_typed_here_not_defined_elsewhere"?
In case of not, may I ask if would it be possible by using C++? (which I do not know now, but it could be a nice motivation for starting learning).
(This is an edited version of a question that I originally made)