Reputation: 1
What are the possible scenarios when a program counter or instruction pointer get zero ?
Upvotes: 0
Views: 521
Reputation: 948
I think this might happen if you have a NULL function pointer since depending on the compiler and instruction set you might trigger a jump to 0. This might also happen with c++ if you're using a virtual function and the vtable has a NULL entry.
I haven't confirmed this though, just a guess
Upvotes: 1