01.11.2017 Views

book

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The order conventions are:<br />

Address<br />

Big-Endian<br />

Representatio<br />

n<br />

Little-Endian<br />

Representatio<br />

n<br />

00 00000001 00000000<br />

01 00000000 00000001<br />

int values are assigned as decimal values by default, as in<br />

int i = 17;<br />

To assign an octal value, prefix the value with a zero. For example,<br />

int ioctal = 010;<br />

assigns octal 10 (decimal 8) to ioctal.<br />

To assign a hexadecimal value, prefix the value with a zero then an x. For example,<br />

int ihex = 0xB;<br />

assigns hexadecimal B (decimal 11) to ihex.<br />

A long literal value has an l or L suffix, for example,<br />

long lvar = 123456789L;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!