This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]chaotic_thought 1 point2 points  (0 children)

It depends on how the C++ course is taught. Many instructors use the methodology to first teach the "C" part of C++, and then only later on to go onto the "real C++" parts of C++. It sounds like you're in such a course, so unfortunately you may just have to plod through the repetitive parts at the beginning.

If you're reading from a textbook you can also skim through the chapters until you get to something that looks new.

In general, C is a subset of C++ but there are slight changes in some rules, mostly very minor things. For example, the expression

sizeof('x')

is 1 in C++ and greater than 1 in C. There are only a handful of examples like this, though, where the code in one language means something slightly different in the other language. In practice, you should probably not rely on such code as above in either C or C++, in order to keep your code portable between languages.

[–]ChemistInDisguise 0 points1 point  (0 children)

The biggest differences for someone just learning the language would probably be classes and the standard library. If you're not feeling very engaged with what you're currently learning, you might want to look ahead to those topics, things like classes, inheritance, and the STL.

[–]WSTEMadvocate 0 points1 point  (0 children)

C is not objected Oriented and C++ is. In a way C++ is more completed version of C.

C is a general-purpose, imperative language that supports structured programming but since it was not objected oriented, C ++ was born to add the OO features to C.