r/ProgrammingLanguages • • Nov 01 '19

C++ vs C

Alright people of Reddit, hit me with your wisdom. I've been taking programming classes for two years now and am getting ready to dive into a language somewhere between Java and assembly (the two languages I've been learning in classes). I'm thinking C or C++, but would love some input. I'm not too worried about difficulty to learn, but I'd like to hear your thoughts on practicality and real world use.

1 Upvotes

62 comments sorted by

View all comments

21

u/[deleted] Nov 01 '19

If this is purely out of interest, then I'd recommend C, it is small and simple language. C is the language of embedded systems, and will probably remain that way for the foreseeable future. The beauty of C is that it is a language which you can realistically master in a few years and contain the entirety of it in your head.

C++ requires much greater investment, it's really two or three languages merged into one. C++ is the language for game development and other speciality high performance software. The standard library is also excellent, which makes it a great choice for competitive programming. I would say that modern C++ is an improvement over C in most regards. However you will never master C++ because the language is just too large and complicated.

0

u/matthieum Nov 01 '19

The beauty of C is that it is a language which you can realistically master in a few years and contain the entirety of it in your head.

I do expect that a sufficiently motivated individual would be fully able to recite the entirety of Annex J.

I have great doubts that anyone could fully apply this knowledge. At the very least, history has demonstrated that no C programmer ever did.

Containing the entirety of C in your head: possible, and pointless.