Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当程序计数器或指令指针变为零时,可能出现哪些情况?
我认为如果你有一个 NULL 函数指针,这可能会发生,因为根据编译器和指令集,你可能会触发跳转到 0。如果你使用虚函数并且 vtable 有一个 NULL 条目,c++ 也可能会发生这种情况。
不过我还没有证实,只是猜测