Live data from Hacker News

Ask HN: Should I learn C or C++?

news.ycombinator.com

11–13 of 13 posts

Re: Ask HN: Should I learn C or C++?

#12
post #5
post #3

Earlier quoted context omitted.

Fair, which one would you recommend picking up first?

C first. C++ was originally a superset of C, though my understanding is that that is no longer strictly the case. Still, learning C will make it easier to learn C++, because C is far simpler and in order to understand C++ you’ll have to master C’s concepts anyway.

C++ still the superset of a language that is a dialect of C. In terms of ISO, it's probably still closest to the C90 dialect, with some C99-like features (inline functions, // comments).

Re: Ask HN: Should I learn C or C++?

#13
If you don't know C, you can hardly write a C++ main function that processes the arguments. Or use C libraries effectively (without someone who does know the C-like subset of C++ having written a class framework for you which wraps them).
Post reply on HN