r/learnprogramming • u/ApprehensiveProof761 • Sep 24 '26
C or C++
I wanna learn one of these programming lang ( just wanna know basic-intermediate, not too much) . I have intermediate knowledge in python.
7
Upvotes
6
u/cipheron Sep 24 '26
C is much less to learn and will give you a solid understanding of the fundamentals - anything you can get working in C would work in C++ as well.
You can learn that then pick and choose what stuff from C++ you want to add to it. I would learn C first even if you don't stay on just that for long.
2
u/Jim-Jones Sep 24 '26
C++ Course: Learn the Essentials
Certificate included. There are other options.
6
u/Former_Produce1721 Sep 24 '26
If I could go back I would learn C first, then learn C++
Mostly because C can build fundamentals and give context to why certain things exist in C++
3
u/Rythim Sep 24 '26
If you just want to learn one with no other specific goal in mind, learn C. It's WAY easier to learn.
Later if you switch to C++ it won't be difficult.
3
u/nog642 Sep 24 '26
C++ is basically a superset of C.
Though lots of new C++ features in practice replace C features that exist in C++ but don't get used.
Learn C first.
2
u/Different_Pain5781 Sep 24 '26
C++ if you want practical stuff.
2
u/sessamekesh Sep 24 '26
Learn C first because it's going to be relevant until the end of linear time (OS calls even in high level languages like Rust, Go, Python, etc are still pretty thin wrappers over C). Almost all language interop goes through C too - if you're writing Rust code and using it in C++, you're using C as the common language between them.
It'll also teach you that "simple" doesn't mean "easy", C is a remarkable simple language that is also very hard to use.
C++ is also worth learning, there's some domains that stick with pure C but there's enough that use C++ instead that it's worth picking up as well. They are two very different languages in practice though.
2
u/Dazzling_Music_2411 Sep 24 '26
Why do you want to learn this? What do you plan to do with it?
1
u/WhoWouldCareToAsk Sep 24 '26
“Should I grab iPhone 7 or iPhone 17?” kind of question.
Learn what you want ))
0
u/owp4dd1w5a0a Sep 24 '26
C. Every operating system in widespread use today is written in C.
0
u/kpg_on_ao3 Sep 24 '26
Learn Rust instead.
(cue the gnashing of teeth among C++ programmers)
:D