Sinisterly
Your Op - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: Coding (https://sinister.li/Forum-Coding--71)
+--- Thread: Your Op (/Thread-Your-Op)

Pages: 1 2


RE: Your Op - DaPaus - 11-04-2012

Yeah If you know C++ it isn't a big deal to learn C.


RE: Your Op - Frooxius - 11-04-2012

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-Understand-C-C-like-a-pro-compilation-of-my-explanations


RE: Your Op - DaPaus - 11-04-2012

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.


RE: Your Op - Frooxius - 11-04-2012

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.


RE: Your Op - Pain - 11-05-2012

Well i will go with C then proceed from there .