What does =+ mean in C?

后端 未结 6 1674
说谎
说谎 2020-11-30 08:30

I came across =+ as opposed to the standard += today in some C code; I\'m not quite sure what\'s going on here. I also couldn\'t find it in the doc

6条回答
  •  北荒
    北荒 (楼主)
    2020-11-30 09:03

    In ancient versions of C, =+ was equivalent to +=. Remnants of it have been found alongside the earliest dinosaur bones. Any more, it has no special meaning -- it's just a = followed by a +.

提交回复
热议问题