APSC 160 Chapter Notes - Chapter 4-5: Binary Operation, Operand, Modulus Guitars

95 views6 pages
20 Jan 2017
School
Department
Course

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents