Lesson plan
Magic number (programming)
In computer programming, a magic number or magic constant is a numeric literal in source code whose meaning is unclear to the reader. The term is also used outside of programming to refer to a number whose meaning is not obvious without additional knowledge — for example, some file formats are identified by an embedded magic number in the file ). Also, a number that is relatively uniquely associated with a particular concept, such as a universally unique identifier, might be classified as a magic number.
Article summary
In computer programming, a magic number or magic constant is a numeric literal in source code whose meaning is unclear to the reader. The term is also used outside of programming to refer to a number whose meaning is not obvious without additional knowledge — for example, some file formats are identified by an embedded magic number in the file ). Also, a number that is relatively uniquely associated with a particular concept, such as a universally unique identifier, might be classified as a magic number.
Key claims
No claims recorded.
Discussion questions
- Summarise the article in your own words. Which single claim would you verify first, and why?
- Which claim in this article is most likely to be revised as the sources update? How would you check its current status?
- If two sources disagreed about one of these facts, what would you need in order to trust one over the other?
Bibliography
No sources recorded.
Key claims and bibliography are generated from the same tracked claims and sources as the article page.