Discover more from AASAN || Tech by Wajid Khan
🎛️CODE: Source Code vs Binary Code
Source-Code: is the collection of instructions and statements that a programmer creates in a computer programming language. The source code then converted into machine code by compiler.
Declarations, instructions, functions, loops, and other statements that instruct the program on how to run are all included in source code.
Programs may include one or more source code text files, which can be saved on a computer's hard disk, stored in a database, or save in code snippet online source control management system like GitHub e.g. Example Code Snippet
Binary-Code: Binary uses a pattern of ones and zeroes to represent numbers in its base-2 number system. Computers could represent numbers in binary code by connecting switches in series.
Early computer systems had mechanical switches that turned on to represent 1, and turned off to represent 0.
Inside the CPU and RAM, modern computers continue to use binary code in the form of digital ones and zeroes.
A digital one or zero is simply an electrical signal that's either turned on or turned off inside of a hardware device like a CPU, which can hold and calculate many millions of binary numbers.
Eight "bits," make up a "byte," which is how binary numbers are represented. In an 8-bit binary integer, a bit is a discrete one or zero.
Hi, I’m Wajid Khan. I am trying to explain computer stuff in a simple and engaging manner, so that even non-techies can easily understand, and delivered to your inbox weekly.
Thanks for reading Wajid Khan! Subscribe for free to receive new posts and support my work.