lec1300_part8

lec1300_part8 - Memory HES1300 C Programming Lecture Notes...

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

View Full Document Right Arrow Icon
Swinburne University of Technology 1 HES1300 C Programming Lecture Notes – Part 8 Swinburne University of Technology Memory s The computer needs a way to store its information. The area in the computer where this storage takes place is called the memory . s A computer is an electronic device. Up to now, it has been possible to talk of the computer is very abstract, human terms, but when discussing memory, it is important to have an idea what is going on inside the machine. Swinburne University of Technology Memory s Computer memory consists of a series of storage units. Each of these units, called bits can either be on or off. s A group of 4 bits is called a nibble. s A group of 8 bits is called a byte. s A group of 16 bits is a word. s A group of 32 bits is called a long word. s A group of 64 bits is a long long word. Swinburne University of Technology Memory s Each bit can be in only 2 states: ON or OFF. These states can be represented by the number 1 (on) and 0 (off). s Unfortunately, we need more than just 2 numbers for counting. This is why we group bits together. s Computers use a counting system which is different to that used by humans. It is called binary. Swinburne University of Technology Binary Numbers s In the decimal number system, we have 10 digits, they look like this: s 0,1,2,3,4,5,6,7,8,9. s When we want to create numbers bigger than 9, we put numbers together. ie: s 5189 = 5x1000+1x100 + 8 x 10 + 9x1 s As we add digits to the right, we multiply them by increasing powers of 10. This enables us to represent numbers of any size, by using 10 letters. Swinburne University of Technology
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 09/29/2010 for the course C++ c taught by Professor Lauren during the Three '10 term at Swinburne.

Page1 / 3

lec1300_part8 - Memory HES1300 C Programming Lecture Notes...

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