07.04.2013 Views

MPLAB C Compiler for PIC24 MCUs and dsPIC DSCs ... - Microchip

MPLAB C Compiler for PIC24 MCUs and dsPIC DSCs ... - Microchip

MPLAB C Compiler for PIC24 MCUs and dsPIC DSCs ... - Microchip

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

16-Bit C <strong>Compiler</strong> User’s Guide<br />

2.5 EXPRESSION DIFFERENCES<br />

This section describes the expression differences between plain ANSI C <strong>and</strong> the C<br />

accepted by the compiler.<br />

2.5.1 Binary Constants<br />

A sequence of binary digits preceded by 0b or 0B (the numeral ‘0’ followed by the letter<br />

‘b’ or ‘B’) is taken to be a binary integer. The binary digits consist of the numerals ‘0’<br />

<strong>and</strong> ‘1’. For example, the (decimal) number 255 can be written as 0b11111111.<br />

Like other integer constants, a binary constant may be suffixed by the letter ‘u’ or ‘U’,<br />

to specify that it is unsigned. A binary constant may also be suffixed by the letter ‘l’ or<br />

‘L’, to specify that it is long. Similarly, the suffix ‘ll’ or ‘LL’ denotes a long long binary<br />

constant.<br />

DS51284H-page 32 © 2008 <strong>Microchip</strong> Technology Inc.

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

Saved successfully!

Ooh no, something went wrong!