+ 1
Do I have to learn C before C++?
2 Answers
+ 5
I dont think it is necessary to learn C before learning C++.
Just because C++ shares a lot of the same syntax and a lot of the same semantics, that does not mean you need to learn C first, rather they are two different languages, and should be treated like this.
Of course, if you know C first, then that is good plus to learning C++. You will start with knowing a chunk of the language. If you do not know C first then there is no point focusing on a different language. There are plenty of good books and tutorials available that start you from knowing nothing and will cover anything you would learn from C which applies to C++ as well, starting with the tutorial here on Sololearn which will cover the basics of C++.
Furthermore, by learning C++ you will eventually learn most of C with some differences between the languages that you will learn over time.
I also started up from nothing and chose C++ as my first language without knowing anything about C, but I was still able to learn and understand the concepts of C++, and nowadays it's my favourite and best language, although I would never approach to say I mastered it in any way.
I would also disagree with C++ being too hard for a beginner, the time you spend, your effort and of course practise are all that matters.
- 4
yes you should, c is foundamental, c++ is too complex for beginner, however c code can run on c++ file(compiler)