2 given the increasing prominence of 64 bit machines

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: formats: single precision, declared in C as float, and double precision, declared in C as double. These formats use four and eight bytes, respectively. New to C? For any data type Ì , the declaration Ì *p; indicates that p is a pointer variable, pointing to an object of type Ì . For example char *p; is the declaration of a pointer to an object of type char. End Programmers should strive to make their programs portable across different machines and compilers. One aspect of portability is to make the program insensitive to the exact sizes of the different data types. The C standard sets lower bounds on the numeric ranges of the different data types, as will be covered later, but there are no upper bounds. Since 32-bit machines have been the standard for the last 20 years, many programs have been written assuming the allocations listed as “typical 32-bit” in Figure 2.2. Given the increasing prominence of 64-bit machines in the near future, many hidden word size dependencies will show up as bugs in migrating these programs to new machines....
View Full Document

Ask a homework question - tutors are online