Swinburne University of Technology
1
HES1300 C Programming
Lecture Notes – Part 8
Swinburne University of Technology
Memory
square6
The computer needs a way to store its information. The
area in the computer where this storage takes place is
called the
memory
.
square6
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
square6
Computer memory consists of a series of storage units.
Each of these units, called
bits
can either be on or off.
square6
A group of 4 bits is called a nibble.
square6
A group of 8 bits is called a byte.
square6
A group of 16 bits is a word.
square6
A group of 32 bits is called a long word.
square6
A group of 64 bits is a long long word.
Swinburne University of Technology
Memory
square6
Each bit can be in only 2 states: ON or OFF. These
states can be represented by the number 1 (on) and 0
(off).
square6
Unfortunately, we need more than just 2 numbers for
counting. This is why we group bits together.
square6
Computers use a counting system which is different to
that used by humans. It is called
binary.
Swinburne University of Technology
Binary Numbers
square6
In the decimal number system, we have 10 digits, they
look like this:
square6
0,1,2,3,4,5,6,7,8,9.
square6
When we want to create numbers bigger than 9, we put
numbers together. ie:
square6
5189 = 5x1000+1x100 + 8 x 10 + 9x1
square6
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.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
This is the end of the preview.
Sign up
to
access the rest of the document.
 Three '10
 lauren
 Binary numeral system, Positional notation, Decimal, Swinburne University, Swinburne University of Technology

Click to edit the document details