Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C#

C++

is c the same with C++

1 Answer

Steven Parker
Steven Parker
231,184 Points

C++ is essentially a superset of C.

So they are not the same, but most any code written in C can be compiled using C++. But there are quite a few features (including Ojbect Oriented capabilities) of C++ that are not part of plain C, so C++ code cannot be compiled using C.

In case you had not already noticed, neither C nor C++ are covered by any Treehouse courses.