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 operation...it 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.Mike
Best Of |
Favorites & Replies |
Start a New Board |
My Fool |
BATS data provided in real-time. NYSE, NASDAQ and NYSEMKT data delayed 15 minutes.
Real-Time prices provided by BATS. Market data provided by Interactive Data.
Company fundamental data provided by Morningstar<