va_arg (ap,int(*)())
here, ap is the va_list type variable and it is started with va_start() already.
the place where i have read this said that this is wrong and you have to typedef it first , then you can extract the pointer to a function from the va_arg(). why is it so ? if i can extract int,char* this way, then why can't i do this ? thanks.