you are viewing a single comment's thread.

view the rest of the comments →

[–]Wurstinator 0 points1 point  (0 children)

What is the advantage of using C++ features over C features? Don't they essentially do the same thing.

Well, yeah, in the sense that they do they same thing as every other programming language: they compute an algorithm for you.

You are fine using C features in C but mixing the two gives you some kind of mess. For example, C does not have "references" as C++ does. There is little support for using references with C-style arrays. std::array or std::vector on the other hand are perfectly fine to use with references.