Use function as args
#Function Pointer
function A
{}
function B
{}
function C (arg1, arg2, addr_of_function)
{
}
int main()
{
C(arg1, arg2, A);
C(arg1, arg2, B);
}
Last updated
#Function Pointer
function A
{}
function B
{}
function C (arg1, arg2, addr_of_function)
{
}
int main()
{
C(arg1, arg2, A);
C(arg1, arg2, B);
}
Last updated