Question:
Should I learn C or C++ first? Or does it really matter?
pro1137
2012-08-21 16:16:26 UTC
I heard that I should learn C first because it's a basis for C++, C#, D, Javascript, etc. Is that true? Or should I continue learning C++?
Six answers:
Mr. Smartypants
2012-08-21 16:20:17 UTC
Where I went to school, you couldn't take C as a first language. C is very idiosyncratic. You had to learn another language, like BASIC or Pascal, learn to program first, and -then- learn C.



As for C vs C++ or C#, if you learn those things you still have to learn C first. C++ is C with objects, and before you can even DISCUSS objects you have to have a good background in algorithms, logic, data structures, etc. So if you took a 'beginner's' class in C++ (if there even is such a thing) you'd learn the regular C language first, and then objects.
Cubbi
2012-08-21 20:22:14 UTC
B and BCPL are the basis for C, would you go back and learn them first?



Besides, C and C++ forked some 25 years ago, and while they've heavily influenced one another, they have been evolving separately. C is not a basis for C++, they simply share common ancestry and some language features (which they use differently)



Learn C out of curiosity or because you want to work C jobs, but not because you think it would help to learn C++ -- it won't.
Tristan
2012-08-21 16:20:13 UTC
It's a more basic version, i would learn C++ first because its more advanced and used in applications these days. If this is your first programming language than I'd start with something more simple just to get the idea down, but if not C++ should be just fine!
kapahu
2016-12-08 23:38:49 UTC
C++ is outfitted off of C. In different words, each and every thing it quite is 'criminal' in C can be accomplished in C++. i in my opinion discovered C first and then discovered C++ on terrific of it. i think that it made me a greater effective programmer as C is greater 'technical'. there is an exceedingly particular way of thinking utilized to the c language it quite is an exceedingly logical progression. in the top, it probable would not rely which you utilize reckoning on what you're finding to do. C is used generally in robotics/low-point purposes, jointly as C++ is used greater in greater point purposes like video games/utility frequently.
IDA
2012-08-21 16:30:42 UTC
I would continue to learn C++
green meklar
2012-08-21 21:50:25 UTC
I would recommend going with C first. It is simpler, with fewer annoying quirks and nuances. C++ is more like an extension of C than a whole new language per se.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...