WHATS THE DIFFERENCE BETWEEN C AND C++?

Hi there, i'm studying C++ at Varsity. I just want to know what the difference is between C and C++.
They're two different programming languages. C++ is almost a superset of C.
Moschops when you say C++ is almost a subset of C, does that mean C is more advanced compared to C++. And what would be your language of chose between C & C++ and why?
Moschops when you say C++ is almost a subset of C,


No, C is almost a subset of C++. C++ is C, with a few changes, and then lots more on top.

does that mean C is more advanced compared to C++.

Advanced is a tricky word in programming languages. C++ is certainly bigger, and amenable to a larger range of programming philosophies.

And what would be your language of chose between C & C++ and why?

It would depend on the following things:
Existing knowledge and experience of the programmer(s) in the languages.
Target hardware, and potential future target hardware.
Availability of tools.
Available of programmers.
Target operating system(s) (if any).
Existing libraries suitable for the task.
Relative importance of time/cost/performance in the project.
Lots of other things.

The point is that your choice of language should depend on the situation you're in, the resources you have, and the task to which you're going to apply the code. There is no "best" language.
Last edited on
The main one for me; Object Orientation.
@Moschops i think i understand. thank you very much. much appreciated.
Topic archived. No new replies allowed.