Why games made with C++ are more optimized?

526 views

C++ is the language used in almost all AAA titles. I seen youtube tests that show C++ to execute tasks faster than C# or Python for example. But i heard C is faster than C++ also, so why C++?. And what makes C or C++ faster than other languages (except assembly and machine code of course)?

In: Technology

8 Answers

Anonymous 0 Comments

Imagine you are writing a recipe for a Pie. In assembly you would write “take 5 steps to the fridge, open fridge with your right hand, grab an egg…” and it would depend on your exact kitchen. In C/C++ you would write “Get an egg from the fridge.” In Python you would write “make a pie crust” and you leave the interpreter to figure it out at run time, which is going to take time.

You are viewing 1 out of 8 answers, click here to view all answers.