What are some reasons to choose C over C++?

Recommended Answers

All 2 Replies

There are none.

Well, there are a few. If you don't have a C++ compiler that targets the platform you're looking for, or if you're working on a project (that somebody else started) that uses C liberally.

Also, if you're making a few low-level functions that will get called via a foreign function interface by another language, C is reasonable. And it's fine for making an interpreted programming language -- you never have to fret about the C++'s runtime stuff.

Not every machine is blessed with a C++ compiler.
Some really small devices only have C.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.