If identical, a func() in C is faster than in C++? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

If identical, a func() in C is faster than in C++?

void func( args ) { // a non small code body } If are identical versions in both C & C++ (no OOP or any other cpp feature), the C version would be faster? If yes, how much, it worths implement stress-used routines of a project in C?

19th Aug 2021, 9:13 AM
Kiwwi#
Kiwwi# - avatar
1 Answer
+ 5
The C version won't be faster. The generated ASM will probably be the same, actually.
19th Aug 2021, 10:07 AM
Théophile
Théophile - avatar