{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

cheatsheet_midterm - Alan Turing(1912 1954 You must have at...

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

View Full Document Right Arrow Icon
Alan Turing (1912 - 1954) You must have at least one blank - between two words (identifiers or keywords) - between a word and numeric literal You cannot have a blank - within a word - within a compound symbol - within a literal ( except string literals, in string literals blanks are blanks) line breaks are possible whenever blank is possible exception: a string literal must start and finish on the same line semicolon : at the end of a statement exception: variable declaration: variable declaration is not a statement Operator Explanation Associativity + - ! plus and minus signs, logical NOT right-to-left * / % multiplication, division and modulus left-to-right + - addition, subtraction left-to-right << >> stream insertion and extraction left-to-right < <= > >= Inequality comparison operators left-to-right == != equal, not equal comparison left-to-right && logical and left-to-right || logical or left-to-right = += -= *= /= %= assignment operators right-to-left variable = expression; Von Neumann Model Overflow long int 4Bytes – 32,768...32,767 short int 2Bytes –2,147,483,648...2,147,483,647 float 4Bytes double 8Bytes
Background image of page 1

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

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

{[ snackBarMessage ]}