Talk:C/C++

The C/C++ Programming language
C/C++ is a programming language invented by Richard Heathfield, one of the authors of C Unleashed.

A common mistake among novice programmers or uneducated persons is to refer to C or C++ as an amalgamated concept "C/C++", this is incorrect, since C only compiles as C with a C compiler, likewise for C++. Both languages are distinct even though some similarities may exist. Richard has created a language known as C/C++ by specification and several example programs exist.

http://www.cpax.org.uk/prg/portable/c/c++/rfe00000.html

http://www.cpax.org.uk/prg/portable/c/c++/rfe00001.html

http://www.cpax.org.uk/prg/portable/c/c++/rfe00002.html

http://www.cpax.org.uk/prg/portable/c/c++/rfe00003.html

203.214.49.4 (talk) 09:49, 15 September 2009 (UTC)


 * If C and C++ are distinct then why could you use C headers or source code written in C in a C++ program. If you are careful by knowing the differences between C and C++ programs, you could copy and paste the source code in either a C source file or C++ source file and have it compile. Anything that is written in C could be used in C++ with some very minor modifications due to compatibility reasons for some minor exceptions. —Preceding unsigned comment added by 74.102.154.23 (talk) 05:31, 16 October 2009 (UTC)

You can use C headers or source code in a C++ program, but when you compile them with a C++ compiler, it is compiled as C++. 124.171.44.36 (talk) 06:56, 2 March 2010 (UTC)