What does machine code (1,0) have to do with programming languages ? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 5

What does machine code (1,0) have to do with programming languages ?

29th Aug 2019, 9:59 AM
Mumin Lee
Mumin Lee - avatar
4 ответов
+ 5
A programming language is code that a human can read and understand. A compiler takes this code and translates it down to machine code so that your computer can read, understand, and execute it.
29th Aug 2019, 10:09 AM
Daniel C
Daniel C - avatar
+ 5
Files consist of bytes, which define how the files should work. Bytes are capable of 256 different values and can be represented as 2 hexadecimal digits. Each of those values have a corresponding bit sequence of 8 bits. (2^8=256) Bits are those asked 1s and 0s. Some examples: 0 (int) = 00 (byte) = 00000000 (8 bits) 1 (int) = 01 (byte) = 00000001 (8 bits) 2 (int) = 02 (byte) = 00000010 (8 bits) 10 (int) = 0A (byte) = 00001010 (8 bits) 15 (int) = 0F (byte) = 00001111 (8 bits) 16 (int) = 10 (byte) = 00010000 (8 bits) 100 (int) = 64 (byte) = 01100100 (8 bits) 255 (int) = FF (byte) = 11111111 (8 bits)
29th Aug 2019, 10:30 AM
Seb TheS
Seb TheS - avatar
+ 4
Binary? It's the most basic level of the computer code, basically it's the computers language. But it would be impossibly tedious to try to communicate to the computer using binary so you use a programming language. A compiler is basically just translating the programming languages code to binary for the computer to understand. It's like typing to an interpreter who then tells the computer what your trying to say. Then the computer responds, and the compiler tells you the computers response.
30th Aug 2019, 7:20 PM
AR0
AR0 - avatar
+ 2
Programming languages are created using the machine codes(1&0) .
30th Aug 2019, 7:39 AM
Bob Bomavi
Bob Bomavi - avatar