

This has been referred to as breaking one of the oldest rules of programming, dating back to the COBOL, FORTRAN and PL/1 manuals of the 1960s. The term magic number or magic constant refers to the anti-pattern of using numbers directly in source code. A distinctive unique value that is unlikely to be mistaken for other meanings (e.g., Globally Unique Identifiers).A constant numerical or text value used to identify a file format or protocol for files, see List of file signatures.A unique value with unexplained meaning or multiple occurrences which could (preferably) be replaced with a named constant.

In computer programming, a magic number is any of the following: Sequence of bytes used to identify or indicate the format of a file
