+ 3
C or c++ and why !!?
7 odpowiedzi
+ 7
C++ is a hybrid of C language and OOP.
I reccomend that you learn C++ then you can try C, if you like.
You can mix the to, but , good practice is only using what is needed.
So if you can do the job with one language, when you are not practicing. It is better to stick with one language.
https://www.sololearn.com/discuss/459759/?ref=app
+ 8
I suggest that you add a description, to your questions in the future.
+ 2
@Timon, yes it is, but it depends:
http://www.drdobbs.com/cpp/why-code-in-c-anymore/240149452
https://www.quora.com/Is-C++-slower-than-C-If-yes-is-the-difference-significant
The libraries and tools that are used within each language stretch its compilation and running abilities, therefore, making one poasibly slower than another, and that is seen more with C++ than C.
It is an extremely minor difference, but yes; C++ is slower than C in cases.
+ 2
But it's so minor that you can ignore that. And if it gets important, just use the old C solution within your C++ code.
+ 1
C is considered easier to learn than C++ by many, and they can do pretty much the same things. C++ has a MASSIVE library of... well... libraries! C's is smaller, but C is faster! C++ is bigger, but like a teensy bit slower... so no biggy.
+ 1
C++ is NOT slower, who tells these fairytales?
+ 1
Yes, but it is still slower, regardless of how minor it is. They are both great languages though.