+ 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...

19th Oct 2020, 3:40 PM
‎Keshav
‎Keshav - avatar
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#
19th Oct 2020, 3:48 PM
The future is now thanks to science
The future is now thanks to science - avatar
+ 3
When you compile larger code, it is fastest compared to python and 10x than java
19th Oct 2020, 3:43 PM
Ananiya Jemberu
Ananiya Jemberu - avatar
+ 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.
19th Oct 2020, 3:48 PM
HBhZ_C
HBhZ_C - avatar