当前位置: 代码迷 >> C语言 >> 输出结果
  详细解决方案

输出结果

热度:426   发布时间:2008-04-30 21:18:14.0
输出结果
#include<stdio.h>
int inc(int a)
{
return(++a);
}
int multi(int*a,int*b,int*c)
{
return(*c=*a**b);
}
typedef int(FUNC1)(int in);
typedef int(FUNC2) (int*,int*,int*); void show(FUNC2 fun,int arg1, int*arg2)
{
INCp=&inc;
int temp =p(arg1);
fun(&temp,&arg1, arg2);
printf("%d\n",*arg2);
} main()
{
int a;
show(multi,10,&a);
return 0;
}
//答案是多少?
搜索更多相关的解决方案: int  结果  fun  输出  return  

----------------解决方案--------------------------------------------------------
请问 :  
INCp=&inc;
这句话是什么意思,干嘛用的 ?
----------------解决方案--------------------------------------------------------
首先你的程序不能通过编译程序.
关于自定义指向函数的指针的数据类型,可以看:
http://hi.bccn.net/108519/viewspace-8361
----------------解决方案--------------------------------------------------------
  相关解决方案