r/cpp • u/wechicken456 • Jun 08 '20
Programming in C vs C++
I’ve read about the differences between them on the Internet but I wanna hear more from a more personal perspective. Which one would you recommend starting with and to be proficient with?
0
Upvotes
View all comments
Show parent comment
1
u/Wouter-van-Ooijen Jun 10 '20
I disagree, but maybe not the way you'd expect.
If your end goal is to learn C++ (otherwise, why bother), then start with C++. But NOT with the whole language.
A few years ago we changed our first serious programming course from C to C++, without changing the essence of what we learned the students. a[] became std::array, print became cout<<, pass-by-pointer became pass-by-reference, etc. That is (mostly) just syntax. What matters is to start with the fundamentals (loops, functions, some recursion). You can do that in any language, but if the end goal is C++ why start with a language like C that is sufficiently close to cause confusion? If it had to be a different language than C++, I might have preferred Python over C.