Photo by Photos Hobby on Unsplash

Why basics are important

Kalaiselvan

--

Concept 1 — Byte overflow

We engineers knew that computers does all it’s manipulations just with 0’s and 1’s. We call this is 0’s and 1’s representation as binary (base 2). In programming we do need to consider about the memory and time that will be consumed by our code to perform it’s operation as the input grows. Whenever we declare a variable with any primitive data types, we should also consider it’s range meaning the values it could store in memory.

Here is the code snippet which explains the overflow concept:

Checkout this video for better understanding of how the data are stored in memory.

https://www.youtube.com/watch?v=zxb8DvLUqcM&list=PLUd-CZicjZF0zJzRn3MhZLgoabluIVKFO&index=3

😃 😃 Thank you.

--

--

Kalaiselvan

Mobile application engineer| Android tutor| Aviation Enthusiasts