gpt4 book ai didi

c - 这是一个空指针吗?铸件?它在做什么?

转载 作者:太空宇宙 更新时间:2023-11-04 01:12:44 25 4
gpt4 key购买 nike

我是 C 语言和指针的新手,我对这个函数声明感到困惑:

void someFunction(int (*)(const void *, const void *));

谁能通俗地解释一下这是做什么的以及它是如何工作的?

最佳答案

它是一个函数的原型(prototype),它接受:

a pointer to a function that takes a const void* and a const void* as arguments and returns an int

作为参数,并返回 void

关于c - 这是一个空指针吗?铸件?它在做什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8422772/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com