Extra Notes

Extra Notes - In addition to the basic data types int,...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
In addition to the basic data types int, float and char C provides some additional data types. The most important are: Double (on our system an 8 byte floating point number) Long (on our system an 8 byte integer) The number of bytes used to store each item varies with the implementation. (see size of script for details using our system) Mod operator . in addition to regular division, an additional operator is available when both operands are integers % Mod operator - yields integer remainder in integer division, both operands MUST be integers. 6 % 7 yields 6. Logical operators Used to combine relational expressions: ! Not || OR Their priority is NOT, And, OR. Truth Table Condition 1 Condition 2 Whole Expression True True True True false false False true False False False False OR OPERATOR Condition 1 condition 2 Whole Expression False False False True True True True False True False True True NOT ! (Unary operator) Negates the expression Expression Whole expression with ! True
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/01/2011 for the course CSC 1253 taught by Professor Staff during the Fall '08 term at LSU.

Page1 / 3

Extra Notes - In addition to the basic data types int,...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online