Last Updated: February 25, 2016
·
378
· alexanderzats

Passing a function as a parameter to another function in C

Was pleasantly surprised you can do that in C

float function1(float(*function2)(float parameter1))
{
    float answer = function2(1.0);
    return answer;
}

Which tells me there is still a lot to learn