4

The Missed Shot ✦ ✧✦ ✧✦ ✧

Comments
  • 7
    wtf is this mess?!
  • 0
    @jAsE I dare you.
  • 0
    @Mizz141 If you fink itz a mess kindly comment ur answer.
  • 1
    Emojis and homework in a post? I'll pass.
  • 0
    Wont You get a compilation error for a dangling +. That's always a binary operator right ? Unlike -
  • 0
    @xecute works without compile error
  • 0
    @AlpineLinnix looks a mess but it ran without compilation error... ur answer was wrong though. :D
  • 0
  • 0
    @GiddyNaya if gcc will compile that, it's because you changed it. Ignoring the fact that you omitted the braces for the while, stacking prefix increments shouldn't work. If it does, then gcc is being nice to you, as is default. Gcc won't be an asshole about it unless you request it.

    Other possible explanation, which also covers why while has an odd number of '-':

    It's negative signs. Negative -5, is just 5, which is when negating and decrementing becomes blurred.

    Bottom lines:
    1) we aren't here to solve homework, which assumedly this is.
    2) if it doesn't compile with "-Wall -Werror --pedantic" then kindly leave, your code is shit.
Add Comment