This question shows research effort; it is useful and clear
3
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
return 関数を別の関数に引数として渡して、その値を使用できるようにする方法を知りたいです。
例:
int childFunction(int a, int b)
{
int c;
c = a + b;
return c;
}
void motherFunction(int d, int (childFunction)(int a, int b))
{
//some operation example
}