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.
©2010-2025 Purasbar Ver3.0 [Mobile] [Desktop]
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported license.