Magic number (programming)
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)
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.