a****o 发帖数: 37 | 1 Yeah. In C++, by default, you don't check array bound. So if
your refer an invalid address, it depends on OS. (who knows
whether Windows can always handle this). And if you refer a
valid address(valid to your process, but not valid to your
operation, say, int a[2]; strcpy(a, "xxxxxx"); you will
never know what happens. It may take you long time to debug.
So from debugging issue, Java is better than C++, I have to
admit.
From runtime, it depends. Of course everbody hope their
software to be bug-f |
|