This preview shows page 1. Sign up to view the full content.
Unformatted text preview: rage. The C compiler also associates type information with each pointer, so that it can generate different machine-level code to access the value stored at the location designated by the pointer depending on the type of that value. Although the C compiler maintains this type information, the actual machine-level program it generates has no information about data types. It simply treats each program object as a block of bytes, and the program itself as a sequence of bytes.
New to C? Pointers are a central feature of C. They provide the mechanism for referencing elements of data structures, including arrays. Just like a variable, a pointer has two aspects: its value and its type. The value indicates the location of some object, while its type indicates what kind (e.g., integer or ﬂoating-point number) of object is stored at that location. End 2.1.1 Hexadecimal Notation
A single byte consists of eight bits. In binary notation, its value ranges from ¼¼¼¼¼¼¼¼¾ to ½½½½½½½½¾ . When viewed as a decimal integer, its value ranges from ¼½¼ to ¾ ½¼ . Neither notati...
View Full Document