Fourteen Years of Service
Posts: 711
Threads: 25
RE: Your Op 11-04-2012, 01:31 PM
#11
Yeah If you know C++ it isn't a big deal to learn C.
•
Fourteen Years of Service
Posts: 721
Threads: 49
RE: Your Op 11-04-2012, 04:32 PM
#12
Dapaus: If you know C++, then you basically already know C. You can't really learn C++ without learning C.
C++ language was created as an extension of the C language a superset of it, so C language is a subset of C++. If you learn the whole superset, you know its C subset too, because it's essentially the same (there are a few minor differences, but that's hardly a different language).
C++ extends the C language with object oriented programming (which is why it was originally called C with Classes, only later renamed to simpler C++ which is kind of a joke), templates and other features. The differences were bigger before, but with the new C standard, some of the new features were included in the C itself. For that reason, almost any C program you write is also valid C++ program, because like I said C is a subset of C++, you even said it yourself, so I don't understand why did you said that it's not a big deal to learn C.
I recommend reading this:
http://www.hackcommunity.com/Thread-Unde...planations
I love creativity and creating, I love science and rational thought, I am an open atheist and avid self-learner.
•
Fourteen Years of Service
Posts: 711
Threads: 25
RE: Your Op 11-04-2012, 04:38 PM
#13
Thanks for explaining everything. And I said that because of the few minor diffrences. Because if I'm not mistaken, C can run on a lower level as C++. Not sure tough.
•
Fourteen Years of Service
Posts: 721
Threads: 49
RE: Your Op 11-04-2012, 04:45 PM
#14
C doesn't run on lower level, if it's a subset of C++ then C++ would run on that lower level too and then they would both run on the same level, wouldn't they? C/C++ are relatively close to the hardware, compared to other high level languages, but they are still high level languages (or middle level if you wish).
What C++ can cause though is to generate more complex structures if you use the OOP, but both are usually compiled into machine code and run directly as native programs, with the same level of abstraction from the hardware.
I love creativity and creating, I love science and rational thought, I am an open atheist and avid self-learner.
•
Thirteen Years of Service
Posts: 37
Threads: 5
RE: Your Op 11-05-2012, 12:34 AM
#15
Well i will go with C then proceed from there .
•