+ 3
Please explain me...
I saw some people saying that C++ is faster than other languages. What do they mean by fast? Like Python also take same time execute any code as other languages. Sorry for asking this childish question but i want to know...
3 Antworten
+ 5
c++ and c is much faster than python .You won't understand this if you write a simple hello world code .In python when you take a int it will cause 24 byte while in c and c++ it only takes 2-4 bytes.
The more memory usage will increase the more your code will become slow.
There are also some other reason.You can have a look at it:
https://www.tutorialspoint.com/why-is-python-slower-than-other-languages#
+ 3
When you compile larger code, it is fastest compared to python and 10x than java
+ 2
Faster in the fact that your cpp code require datatype mention in variables declaration and functions definition but in python interpreter do all the work for you so it needs more time to execute instructions.