COSC 175 Lecture Notes - Lecture 4: Kilobyte, Octal

30 views6 pages

Document Summary

Constants and variables (how they relate: variable. Next thing we need when we declare a variable. Counters number of people or inventory. When would use use this: press this key to do this, middle initial. Only 1 byte is allocated for char: float. Price: some space gets put to side for the exponent and for the mantissa, string. Combination of more than one data: boolean. If you allocate space for (example) num1 and num2, then a variable will be given to each of those numbers, their values. Behind the scenes there will be an address for those variables and inputs. Possible values: 0 or 1, everything is either (cid:862)o(cid:374)(cid:863) or (cid:862)off(cid:863) Tended to be grouped together by many bits. Number of bits handled as a unit for a particular computer system. Different sized computers have different sized words: data can do 2 things to data. Be(cid:272)ause the (cid:272)o(cid:373)puter o(cid:374)ly has 2 states, (cid:862)o(cid:374)(cid:863) or (cid:862)off(cid:863: example: 324.

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