Zorba the Hutt (zorbathut) wrote,
Zorba the Hutt
zorbathut

c++ code challenge of the day

Given an integer x, add one to it without using + or -.

There are two different ways to do it in one line.

(And at least two different horribly painful hacks - and one even more painful variation on those.)
Subscribe
  • Post a new comment

    Error

    default userpic

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 19 comments