Integer Overflow

Định nghĩa Integer Overflow là gì?

Integer OverflowTràn số nguyên. Đây là nghĩa tiếng Việt của thuật ngữ Integer Overflow - một thuật ngữ thuộc nhóm Technology Terms - Công nghệ thông tin.

Độ phổ biến(Factor rating): 5/10

Integer overflow là kết quả của một nỗ lực của một CPU để số học tạo ra một số lượng lớn hơn những gì có thể phù hợp trong không gian bộ nhớ lưu trữ dành. phép tính số học luôn có tiềm năng trở về giá trị bất ngờ, mà có thể gây ra một lỗi mà các lực lượng toàn bộ chương trình để tắt. Vì lý do này, hầu hết các lập trình viên muốn thực hiện các hoạt động toán học bên trong một khung ngoại lệ, mà trả về một ngoại lệ trong trường hợp tràn số nguyên thay thế.

Xem thêm: Thuật ngữ công nghệ A-Z

Giải thích ý nghĩa

Một ví dụ về số nguyên tràn có thể xảy ra khi một nhà phát triển chương trình không cho phép sự xuất hiện của một số âm. Trong trường hợp này, nếu một biến thực hiện một hoạt động dẫn đến một số tiêu cực, một tràn xảy ra và biến được trả về như một số nguyên dương. Một ví dụ về số nguyên tràn sẽ chia một số cho số không, mà về mặt toán học mang lại một số lượng lớn với giá trị vô hạn.

What is the Integer Overflow? - Definition

Integer overflow is the result of an attempt by a CPU to arithmetically generate a number larger than what can fit in the devoted memory storage space. Arithmetic operations always have the potential of returning unexpected values, which may cause an error that forces the whole program to shut down. For this reason, most programmers prefer to perform mathematical operations inside an exception frame, which returns an exception in the case of integer overflow instead.

Understanding the Integer Overflow

One example of integer overflow could occur when a program developer does not allow for the occurrence of a negative number. In this case, if a variable performs an operation resulting in a negative number, an overflow occurs and the variable is returned as a positive integer. Another example of integer overflow would be dividing a number by zero, which mathematically yields a large number with an infinite value.

Thuật ngữ liên quan

  • Graphics Processing Unit (GPU)
  • Digital Signal Processing (DSP)
  • Integer (INT)
  • Arithmetic Expression
  • Power Off
  • Truncate
  • Commit
  • Access Modifiers
  • Acyclic
  • Appending Virus

Source: ? Technology Dictionary - Filegi - Techtopedia - Techterm

Trả lời

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *