What's the proper term for run-time errors?
I know when you make a typo in your code, it's c开发者_如何学运维alled a syntax error. but what do you call errors like using an element out of array bounds?
They're called runtime errors.
The other alternative term is, of course, bugs. I would say that runtime errors includes environmental problems such as network failure and disk corruption, whereas bugs are problems in the code itself.
I think the term you're looking for is Logic error.
Unlike a program with a syntax error, a program with a logic error is a valid program in the language, though it does not behave as intended.The only clue to the existence of logic errors is the production of wrong solutions.
Most introductory programming texts I've read divide programming errors into these two broad categories, syntax and logic errors.
精彩评论