I have a function which I want to pass through various functions
int func1(char *ptr)
{
    printf("%s",ptr);
    return 0;
}
and other function in which I want to call the func1
int func2(void *i)
{
    //call i
    //here i point to function func1
    //and do something with return value of i
}
So, how should I call it in main()?
int main()
{
    void *d;
    //SOMETHING wrong in next four line
    d=&func1("abcd");
    func2(d);
    d=&func1("xyz");
    func2(d);
    return 0;
}
 
     
     
     
     
     
     
    