APSC 160 Chapter Notes - Chapter 4-5: Binary Operation, Operand, Modulus Guitars
Document Summary
Short: 2 bytes smaller range of numbers. Int: 4 bytes use this in apsc 160. Use to display numbers ( basically 8 digits) Use to display decimals or e-2 forms. Character data types (single byte of data) char middleinitial; middleinitial = a"; Type of variable and what the variable is. Rules for identifiers; must start with letter or underscore and can only be letters and numbers. Unary operator is an operator that takes only one operand (negative sign) Binary operator takes two operands x = 5 -7. If both operands of a binary operator have integer types, then the result will be an integer, any non- integer part will be thrown away ( 19 and 5) If either of the operands has a floating point type, then the result will be a floating point value (19. 0 and 5, or 19 and 5. 0. Computes the remainder when one positive integer is divided by another positive integer.