





























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






























Very Simplistic View of a Computer CPU Location 0 Location 1 Location 2 Location 3 Location 4 Location 5 Each location is 1 byte of memory 1 byte = 8 bits Each bit is an electric impulse carrying 1 or 0. This simplistic view is enough to explain the basic concepts of programming to students 5
Session 2 7
Example of a Variable (Memory View) int temperature = 35 Locations 0 - 3 are collectively called as ‘temperature’ 00000000 00000000 00000000 00100011 100011 is the binary equivalent of 35 Location 0 Location 1 Location 2 Location 3 Location 4 Location 5 Session 2 10
Session 2
temperature = 45902 1011001101001110 is the binary equivalent of 45902 00000000 Location 0 Locations 0 - 3 are collectively (^00000000) Location 1 called as ‘temperature’ 10110011 Location^2 (^01001110) Location 3 Location 4 Location 5 11
ession 2 14