• Sophienomenal@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    17 hours ago

    Positive numbers need not be indicated by a plus sign, as any number without a negative sign is assumed to be positive (except 0). Therefore, the plus is assumed with C.

    As for the latter half, there exists a C–, but not a C-. Which, in actuality, implies the existence of the aforementioned C+ (as was assumed), as 2 negatives makes a positive (despite the fact that C-- is a discrete language separate from C).

    It’s also of note that a separate interpretation may be implied. ++ and -- are increment and decrement instructions within the C programming language, suggesting that C++ is an increment of C, whereas C-- is a decrement of it.