Skip to content

Commit 7134622

Browse files
Update README.md
1 parent a4d7ba3 commit 7134622

File tree

1 file changed

+30
-42
lines changed

1 file changed

+30
-42
lines changed

README.md

Lines changed: 30 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -111,50 +111,38 @@ int main() {
111111
}
112112
```
113113

114-
In this small program, the `#include`
115-
tells the computer to include a certain
116-
source which is needed because
117-
it contains the predefined command `printf`.
118-
`printf` simply tells the computer
119-
to display the text provided by the programmer.
120-
121-
As simple as that, you have now the complete
122-
idea of what a programmable computer is all about.
123-
It's you telling the computer to do things it
124-
can handle in terms of binary data.
114+
In this small program, the `#include` tells the computer to include a
115+
certain source which is needed because it contains the predefined
116+
command `printf`. `printf` simply tells the computer to display the
117+
text provided by the programmer.
118+
119+
As simple as that, you now have the complete idea of what a
120+
programmable computer is all about. It's you telling the computer to
121+
do things it can handle in terms of binary data.
125122

126123
## Variables And Data Types
127-
In computer programming, a **variable** is just like
128-
a container to store digital data. A **data type**
129-
is the way you tell the computer how that data
130-
will be interpreted. Should the computer interpret
131-
that as letters? or numbers? or words? or simply
132-
raw binary data? The computer does not know
133-
that, you must tell it exactly.
134-
135-
In computer programming, both these things
136-
will enable you to store data and tell
137-
the computer what kind of data it is. When you
138-
store, you want to retrieve it later as per
139-
needed. Remember also, computer's memory
140-
is different from storage. Think of it
141-
as the short-term memory and the storage
142-
(the hard disk) as the long-term memory.
143-
But during the runtime of a program you
144-
are developing, you refer to memory as
145-
`storage`. The computer's memory has the full
146-
access to the CPU while the disk does not have
147-
that access.
148-
In order to read contents from the hard disk,
149-
a request should be made. Hence, in programming
150-
you are using the memory first not the disk.
151-
There is the current development to combine
152-
the two but is still on-going.
153-
154-
Take note, the details of memory, hard disk
155-
and CPU are quite complex but the mentioned
156-
details above will serve as the starting point
157-
for full comprehension.
124+
125+
In computer programming, a **variable** is just like a container to
126+
store digital data. A **data type** is the way you tell the computer
127+
how that data will be interpreted. Should the computer interpret that
128+
as letters? or numbers? or words? or simply raw binary data? The
129+
computer does not know that, you must tell it exactly.
130+
131+
In computer programming, both these things will enable you to store
132+
data and tell the computer what kind of data it is. When you store,
133+
you want to retrieve it later as needed. Remember also, computer's
134+
memory is different from storage. Think of it as the short-term memory
135+
and the storage (the hard disk) as the long-term memory. But during
136+
the runtime of a program you are developing, you refer to memory as
137+
`storage`. The computer's memory has full access to the CPU while the
138+
disk does not have that access. In order to read contents from the
139+
hard disk, a request should be made. Hence, in programming, you are
140+
using the memory first, not the disk. There is current development to
141+
combine the two, but it is still ongoing.
142+
143+
Take note, the details of memory, hard disk, and CPU are quite complex,
144+
but the mentioned details above will serve as the starting point for
145+
full comprehension.
158146

159147
### Sample Program for Variables and Data Types
160148
```

0 commit comments

Comments
 (0)