运行时错误的正确术语是什么?

发布于 2024-10-10 03:32:21 字数 55 浏览 0 评论 0原文

我知道当您在代码中出现拼写错误时,这称为语法错误。但是使用超出数组范围的元素之类的错误怎么称呼?

I know when you make a typo in your code, it's called a syntax error. but what do you call errors like using an element out of array bounds?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

无戏配角 2024-10-17 03:32:21

它们被称为运行时错误。

They're called runtime errors.

小…楫夜泊 2024-10-17 03:32:21

当然,另一个替代术语是“错误”。我想说,运行时错误包括网络故障和磁盘损坏等环境问题,而错误是代码本身的问题。

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.

一页 2024-10-17 03:32:21

我认为您要查找的术语是逻辑错误

与有语法错误的程序不同,有逻辑错误的程序在该语言中是有效的程序,尽管它的行为不符合预期。存在逻辑错误的唯一线索是产生错误的解决方案。< /p>

我读过的大多数编程入门书籍都将编程错误分为两大类:语法错误和逻辑错误。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文