When I run my program, NTVDM CPU encountered an illegal instruction, why does this happen? CS:8eb0 IP:fd9c OP:8c fd 8c fd 98
When I run my program, NTVDM CPU encountered an illegal instruction, why does this happen? CS:8eb0 IP:fd9c OP:8c fd 8c fd 98
What kind of programm? ntvdm.exe is a virtual machine for 16 bit processes. Are you using an ancient compiler?
main() { int O[!0<<~-!0]; (!0<<!0)[O]+= ~0 +~(!0|!0<<!0); printf("a function calling "); }
Yes, Borland C++ for DOS. Program of quicksort and there seem to be something wrong with the recursion.
Last edited by xianjianwuhen; 09-04-2009 at 04:59 AM.
Post it up. I happen to be very close friends with "someone" who frequently uses Turbo C/C++, from Borland.
Coincidentally, I'm (er, I mean), that "friend" is a pretty big fan of Quicksort, as well.
Why are you using an ancient compiler?
It's not like there is a shortage of high quality and FREE compilers for your modern OS.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.