answersLogoWhite

0

It would be easier to point out the differences. C++ is object-oriented while C is structured, thus C does not support classes. Other than that, the differences are relatively minor. Typedef is generally implied in C++ but is required in C to simplify struct declarations. sizeof(char) reports as 1 (byte) in C++ but reports sizeof(int) in C. A char is therefore unsigned in C++, but generally signed in C (implementation specific). Mixing C and C++ code requires extern "C" to denote C-style code. extern "C" is not supported by C. C has 34 keywords while C++ has 66, including all those reserved by C. The additional keywords are not supported by C. Identifiers in C++ can begin with a double underscore but cannot contain them. C is the opposite.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions