Term used to attempt to refer simultaneously to 2 somewhat similar programming languages, C and C++. Justly derided on both sides of the fence, as the 2 languages are not the same (nor is C++ an extension of C).

Usually common with people who claim the idioms of C++ (such as casting the return value of malloc() and avoiding the use of postincrement ) should be used in C, to make the code "more portable". This is like defining macros

#define BEGIN {
#define END ;}
"to make C more like Pascal". The correct way to use C++ from C, and C from C++, is by judicious use of the "extern "C"" declaration of C++, while compiling each part of the program with the correct compiler. There is no such language as C/C++.

If you still think C++ is a "superset" of C, take a look at this C program that is not a C++ program, then try to "fix" it to make it compile with C++.

Log in or register to write something here or to contact authors.