gpt4 book ai didi

c - 函数指针数组的长度

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

<分区>

有没有一种安全的方法来获取函数指针数组的长度?

下面的方法行得通吗?

sizeof((uintptr_t)(*fp) / sizeof(uintptr_t)(*fp[0]))

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