By which system the code is read? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

By which system the code is read?

I really don't know about this.

28th Feb 2019, 8:43 AM
Naphiz K
Naphiz K - avatar
12 Answers
+ 4
Basically what 'read the code' is the CPU, in compiled programming languages, like C, C++, haskell, visualbasic, etc a compiler is in charge of transforming that code into machine code, also called opcode, so the cpu can then make the operations dictated by it With interpreted languages like javascript, php, perl, python etc, an executable called the interpreter translate the code to instructions the cpu can read now the syntax can be in any human language say English, Chinese, Spanish or French but at the end the code must be translated into opcode so the cpu can understand the instructions given to it
28th Feb 2019, 8:06 PM
Juan Sixto Nathan
Juan Sixto Nathan - avatar
+ 4
Code is read by humans on an editor or IDE. It is either interpreted line by line by an interpreter or compiled into machine code or bytecode which is further executed by the processor or interpreted by a virtual machine.
28th Feb 2019, 12:33 PM
Sonic
Sonic - avatar
+ 3
Naphiz K Can you please provide additional context for your question? How did this question arise?
28th Feb 2019, 11:17 AM
Janning⭐
Janning⭐ - avatar
28th Feb 2019, 2:54 PM
Janning⭐
Janning⭐ - avatar
+ 3
Thanks everyone to give their instruct. I will find.
28th Feb 2019, 2:55 PM
Naphiz K
Naphiz K - avatar
+ 3
Yes, typically many layers of languages are used.
28th Feb 2019, 3:10 PM
Janning⭐
Janning⭐ - avatar
+ 2
2112 - decimal
28th Feb 2019, 8:50 AM
Андрей Чачин, Andrew Chachin
Андрей Чачин, Andrew Chachin - avatar
+ 2
What is the sense of this question? Supposing than you want know a which numeric base belong the number , it can belong to any numeric system above that in base 2 (3,4,5, and so on).
28th Feb 2019, 9:17 AM
KrOW
KrOW - avatar
28th Feb 2019, 10:37 AM
Андрей Чачин, Andrew Chachin
Андрей Чачин, Andrew Chachin - avatar
+ 2
But a machine haven't sense to read a value such "red". Therefore it have an another code to detect it.
28th Feb 2019, 2:53 PM
Naphiz K
Naphiz K - avatar
+ 2
Janning that's a good idea. The codes can change a long binary code on play ground and then run. But you have to also think about difference of languages and transforming of code.
28th Feb 2019, 3:03 PM
Naphiz K
Naphiz K - avatar
+ 1
Or do you want to know how your code is processed by SoloLearn?
28th Feb 2019, 10:47 AM
merkrafter