assignment of function

Yes you can assign a function pointer value into a suitably typed variable. Perhaps you are asking what
is the syntax for the type of such a variable?