typedef void(*FUNC)(void);
int main(void)
{
//intptr_t m;
const static unsigned char insn[4] = { 0xff, 0xff, 0xff, 0xff };
FUNC function = (FUNC) insn;
function();
}
上面的代码给了我一个非法指令的输出。有人可以解释为什么吗?. 是不是因为函数指针没有函数的地址(因为它有一个数组的地址,所以它不能跳转到该地址)