Settings | Sign in | Sign up

There are currently 2 posts.

返回函數指針的函數寫法

Floor 1 巨大八爪鱼 5/7/16 17:37
【函數定義】
int abc(char *s)
{
    puts(s);
    return 0;
}

int (*myfunc(int x, int y))(char *s)
{
    return abc;
}
【函數調用】
myfunc(1, 2)("字符串");
Floor 4 巨大八爪鱼 5/7/16 17:40
int myfunc();
int (  *  myfunc()   ) (  ) ;

Content converter:

Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.