Magic number (programming)
Sequence of bytes used to identify or indicate the format of a file / From Wikipedia, the free encyclopedia
Dear Wikiwand AI, let's keep it short by simply answering these key questions:
Can you list the top facts and stats about Magic number (programming)?
Summarize this article for a 10 year old
SHOW ALL QUESTIONS
In computer programming, a magic number is any of the following:
- A unique value with unexplained meaning or multiple occurrences which could (preferably) be replaced with a named constant
- A constant numerical or text value used to identify a file format or protocol; for files, see List of file signatures
- A distinctive unique value that is unlikely to be mistaken for other meanings (e.g., Globally Unique Identifiers)