People suppose this, but that&#x27;s not quite how it happened.  C came from B, and B had ++ also.  But B came before the PDP-11.  The PDP-7 had hardware that supported auto-increment-by-one, and Ritchie suggests that&#x27;s where ++ came from.<p>The PDP-7 assembler manual is at <a href="http:&#x2F;&#x2F;bitsavers.informatik.uni-stuttgart.de&#x2F;pdf&#x2F;dec&#x2F;pdp7&#x2F;PDP-7_AsmMan.pdf" rel="nofollow">http:&#x2F;&#x2F;bitsavers.informatik.uni-stuttgart.de&#x2F;pdf&#x2F;dec&#x2F;pdp7&#x2F;PD...</a>, but I can&#x27;t see any reference to this auto-increment hardware, or to an assembler directive using it.  What I&#x27;m getting at is that there appears not to have been an assembly language construct for auto-increment on the PDP-7 at all, even though its hardware supported it.<p>The hardware &quot;auto-indexing&quot; is described at page 3-12 of the PDP-7 architecture document, <a href="http:&#x2F;&#x2F;bitsavers.informatik.uni-stuttgart.de&#x2F;pdf&#x2F;dec&#x2F;pdp7&#x2F;F-75P_PDP7prelimUM_Dec64.pdf" rel="nofollow">http:&#x2F;&#x2F;bitsavers.informatik.uni-stuttgart.de&#x2F;pdf&#x2F;dec&#x2F;pdp7&#x2F;F-...</a> .  It is enabled only for about 8 special memory addresses in each 8K of address space, so it is weird and handicapped by comparison with the PDP-11.<p>See Ritchie&#x27;s history (<a href="http:&#x2F;&#x2F;www.bell-labs.com&#x2F;usr&#x2F;dmr&#x2F;www&#x2F;chist.html" rel="nofollow">http:&#x2F;&#x2F;www.bell-labs.com&#x2F;usr&#x2F;dmr&#x2F;www&#x2F;chist.html</a>) --<p>&quot;Thompson went a step further by inventing the ++ and -- operators, which increment or decrement; their prefix or postfix position determines whether the alteration occurs before or after noting the value of the operand. They were not in the earliest versions of B, but appeared along the way. People often guess that they were created to use the auto-increment and auto-decrement address modes provided by the DEC PDP-11 on which C and Unix first became popular. This is historically impossible, since there was no PDP-11 when B was developed.<p>&quot;The PDP-7, however, did have a few `auto-increment&#x27; memory cells, with the property that an indirect memory reference through them incremented the cell. This feature probably suggested such operators to Thompson; the generalization to make them both prefix and postfix was his own. Indeed, the auto-increment cells were not used directly in implementation of the operators, and a stronger motivation for the innovation was probably his observation that the translation of ++x was smaller than that of x=x+1.&quot;