Message Font: Serif | Sans-Serif
No. of Recommendations: 2
Well, it started out as "C" and adapted to C+ and then C++.

If you say this you have no idea what C++ is.
Hint, there never was a C+.

From the archives of more than you wanted to know...

In the C programming language you can increment a variable in a few ways; the conventional way (A = A+1, for example) but also with the increment operator (which is ++) so you can increment a variable within a statement (such as: B = blah1 + (A++) - blah2; where A gets incremented during the evaluation of B). Therefore C++ is a nerdy C-way of saying the next thing after C.

The origin of the ++ operator was from assembly languages such as for the DEC PDP-11 where it was used to increment an address after reading the memory from an address. This was more efficient in the hardware because the machine needed to load the address into a CPU register in order to use it to do the memory would be wasteful to have to load it again just to add one to it. The ++ was used to indicate that the CPU was to take this shortcut. Unix and C were developed by Bell Labs on DEC hardware.

Print the post  


When Life Gives You Lemons
We all have had hardships and made poor decisions. The important thing is how we respond and grow. Read the story of a Fool who started from nothing, and looks to gain everything.
Contact Us
Contact Customer Service and other Fool departments here.
Work for Fools?
Winner of the Washingtonian great places to work, and Glassdoor #1 Company to Work For 2015! Have access to all of TMF's online and email products for FREE, and be paid for your contributions to TMF! Click the link and start your Fool career.