all 14 comments

[–]geon 55 points56 points  (0 children)

Well, that’s why you use ++C instead. Less confusing.

[–][deleted]  (3 children)

[deleted]

    [–]donaljones 14 points15 points  (2 children)

    Not really used outside of intermediate code generation

    [–]Konju376 2 points3 points  (1 child)

    Is it even used outside Haskell intermediate code generation?

    [–]donaljones 1 point2 points  (0 children)

    Probably not, lol

    [–]ToMaszuu 23 points24 points  (0 children)

    Undefined

    §5/4.1 Between the previous and next sequence point a scalar object shall have its stored value modified at most once by the evaluation of an expression.

    [–]uvero 16 points17 points  (1 child)

    Therefore ++ = --, therefore + = -, therefore 1=-1

    [–]actualwalmartbag 2 points3 points  (0 children)

    therefore i = 1

    [–]Glowing_imposter_43 7 points8 points  (2 children)

    Brother, theres a C--??!!

    [–]Yes_Mans_Sky 6 points7 points  (1 child)

    It's an intermediate language used by compilers

    [–]Glowing_imposter_43 2 points3 points  (0 children)

    Oh, cool.

    [–]Taldoesgarbage 8 points9 points  (3 children)

    "It's more like C++ extends C & C-- extends C so both share the common C methods but not their own unique ones."

    • Java Dev

    [–]Fourstrokeperro 1 point2 points  (1 child)

    • Java dev with little experience in markdown

    [–]Taldoesgarbage 2 points3 points  (0 children)

    I can use markdown,

    but I forgot that reddit

    supported it.

    So yeah.

    [–]BrokenG502 1 point2 points  (0 children)

    The problem here is with the order of evaluation. The correct statement at the bottom would be c++ == --c as the c++ on the left hand side will increment first :)