Now a day, computers are performing billions of things in a second gigahertz speed, a more readable code is more preferred in some cases.

 

Input | Source code – code we humans have written using java, c, python

              Compiler

Output | Machine code – 0 and 1s

 

Ram – temporary storage, has finite number of transistors which means there are finite of values that can be represented and stored accurately. For example, when you divide a number and add 50 more decimal place holders, the number that is displaced is imprecision, very micro value but still imprecision. For this reason finance displays dollars up to the thousands place, because back in the days when this was not obvious, people made money by adding up penny values.

 

When value reaches its’ max value, it overflows and returns to the beginning.

Cs50 sandbox

 

 

+ Recent posts