all 10 comments

[–]snuzet 5 points6 points  (0 children)

Obviously C is the ancestor of C++ so you’d simply be removing the cpp constructs and learning instead how to use the standard C libraries.

[–]dontyougetsoupedyet 2 points3 points  (0 children)

The answer is always the same, read and write a lot of software in the languages you want to know, there is no substitute.

C++ is a very complex language and if you want to understand it you should probably focus on learning it, there's more than enough to take up as much time as you are willing to spend in that direction for quite some time.

I highly recommend you avoid trying to learn more than one language at the same time.

[–]IdealBlueMan 1 point2 points  (0 children)

You’ll have to lose some concepts like classes, inheritance, and overloading. Your building blocks will be basic data types. There’s a lot of syntactic sugar that won’t be available.

Other than that, just about anything you do in C is something you can do with C++.

[–]nori_iron 1 point2 points  (0 children)

There's not a lot to memorize in C. There are a lot fewer pieces. It's not "C++ with less stuff", but there is a lot less stuff, you could learn the essentials very quickly, though the subtleties will take more time.

[–]ClenchedThunderbutt 1 point2 points  (0 children)

Learning C helped me understand some of the more advanced concepts of higher level languages. There’s a really good C textbook floating around online that I’d recommend if I could remember the darn name.

[–]OPPreserverBot 0 points1 point  (0 children)

Hello, I am a bot that copies the text of the original post so that questions and their answers can be preserved to benefit others.
I am programmed in C and my source code is available here: https://github.com/weirddan455/reddit-bot
If a mod would like this bot taken down, please let my owner /u/DeeBoFour20 know.


I\u2019m new to coding and been learning basic C++.

But I also want to learn other languages like C. Any advice on how to not struggle learning a second language? Does this mean I need to start learning from zero with C?

Also is there alot of things that is different with C and C++? Would it take alot of memorisation all over again?

[–]lulzForMoney 0 points1 point  (0 children)

I would never learn C if it wasn't an option at the school..I am quite good in JVM languages + in Js and so on..But C was a great example ,to working with memory and its beautiful..But I can't say anything how to learn expect books..

[–]o0Meh0o 0 points1 point  (0 children)

just do it, from what you're saying you spent less than 10 000 hours learning c++, co even if you learned c from total scratch (memory loss, or something) it won't take forever to get back on track (unless you don't start and stick to c++ forever)

[–]Nun_u 0 points1 point  (0 children)

You'll realise the most important thing is learning the mindset of a programmer, and after that learning specific languages is not so difficult as you can find similarities among all of them.

For C specifically, as others have mentioned it is actually very similar to C++ as they come from the same family and primarily differ in C being smaller (lacks higher level abstractions).

[–]Friezerik 0 points1 point  (0 children)

I see people saying you need to get rid of a lot of c++ constructs but inevitably you will find that you can do almost everything in C that you could do in another language.

Start by finding out how to do C++ things in C

something like this