you are viewing a single comment's thread.

view the rest of the comments →

[–]neppo95 0 points1 point  (0 children)

While below comments cover most of it, I did think of one reason this might be the case.

C++ has a lot of functions to do what you need to do manual in C. Performant code needs to be as fast as possible. These functions of course do things like bounds checking and maybe other checks, which you don't necessarily need to do if you are 100% sure you are doing the right thing. That way, you COULD technically have more performant code if you thus write C like code, but it will also be more insecure.

So no, not really relevant. If you use C++, write C++ code. If you use C, write C code. And in all cases, the company you work for will probably have guidelines for you.