What does 'C' (supposedly language) mean?

Why do we have just C in vs code? Whats this? we have C++ cpp and C h
Whats that?:slight_smile:

And why do we use C first

C is an older language and C++ was an expansion of it adding OOP features to it.
The name was derived from the ++ operator which is “add one to a number”, if you didn’t know it already.
So:

int someInt = 2;

someInt = someInt + 1; /*this line*/
someInt++;             /* and this one */
/* both do the same thing */

C is actually a successor of B, and there’s also a language called D.
(There was also BCPL which was somewhere in between B and C)

1 Like

Another fun fact: The earliest C++ compilers actually were just a step that was put in front of a C compiler, so they would just take C++ code and generate C to be fed into an already existing compiler.
(There were other languages (and probably to some extent even still are, at least during some bootstrapping phase) that used the same mechanism to generate the machine’s binary code, just be generating some intermediate C code.)

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms