这是我第一次看到这样的东西,其中函数就像指针(但它不是函数指针??)。请参阅下面的示例。
static struct test *MyFunc(struct astr *A, int count)
{
}
MyFunc(B, 100);
有人可以解释一下上面的工作原理以及为什么要使用指针函数(如果这是正确的术语)以及为什么不简单地使用
static struct test MyFunc(struct astr *A, int count)
最佳答案
这样想:
static (struct test *) MyFunc(struct astr *A, int count)
关于c - 这是什么类型的函数(带代码的指针函数)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60686611/