All pastes #1746643 Raw Edit

Function Pointer to Function wit

public text v1 · immutable
#1746643 ·published 2010-01-11 09:13 UTC
rendered paste body
#include <cstdio>

void foo(int x = 0, int y = 0) {
    if(x && y);   // To keep the compiler happy
    puts("void foo(int, int)");
}

void (*fp_int_int)(int, int) = foo;

int main() {
    fp_int_int(0, 0);
    fp_int_int();    // This is not allowed
}