- 1

What is difference between C++ and python ??

Why C++ need compiler and python need interpreter??

14th Jan 2021, 6:05 PM
Bijoy Coming Soon
Bijoy Coming Soon - avatar
2 Answers
+ 5
Python is an interpreted language and it runs through an interpreter during compilation. C++ is a pre-compiled programming language and doesn't need any interpreter during compilation! Why Interpreted? One popular advantage of interpreted languages is that they are platform-independent. As long as the Python bytecode and the Virtual Machine have the same version, Python bytecode can be executed on any platform (Windows, MacOS, etc). Dynamic typing is another advantage. Each C++ source file needs to be compiled into an object file. The object files resulting from the compilation of multiple source files are then linked into an executable, a shared library, or a static library (the last of these being just an archive of object files). C++ source files generally have the . cpp, . Compiled languages are converted directly into machine code that the processor can execute. As a result, they tend to be faster and more efficient to execute than interpreted languages. They also give the developer more control over hardware aspects, like memory management and CPU usage. The difference between an interpreted and a compiled language lies in the result of the process of interpreting or compiling. An interpreter produces a result from a program, while a compiler produces a program written in assembly language.
15th Jan 2021, 6:05 AM
Abhiyantā
Abhiyantā - avatar
+ 3
C++ is pre-compiled programming language and doesn't need any interpreter during compilation.
14th Jan 2021, 6:37 PM
Zohaib 👑
Zohaib 👑 - avatar