Universal Product Code (UPC) is a barcode, generally used for trade items. In the United States, UPC-A barcode represents the Global Trade Item Number (GTIN).
UPCs are used in stores to label trade items. These codes can be easily scanned using machines and thus it helps in inventory management as well as at the point of sale (check-out desk).
A UPC consists of black lines and white spaces which represent 12 digits long GTIN. Usually these digits are also shown as numerals above or below the UPC.
The pattern of a UPC is like SLLLLLLMRRRRRRE -- here S represents start guard line; L represent left section containing six digits; M represents middle guard line; R represent right section containing six digits; and E represents end guard line. The first digit L indicates a particular number system to be used by the following digits. The last digit R is an error detecting check digit. The significance of guard lines is that they establish timing (in scanning).