• Snazz@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      2 days ago

      There are only 4.29 billion possible values of an int32, so even if you used 2 lines for each case, it’d still be under 10 billion lines of code

      bool isOdd(int num) {
          if (num == 1)
              { return true; }
          if (num == 2)
              { return false; }
          if (num == 3)
              { return true; }
          …
      }
      
    • deur@feddit.nl
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      2 days ago

      Some potential reasons:

      1. This was taken with Windows’s snipping tool. If you click on the image, it draws. AFAIK the default color is red.

      2. This was screenshotted on android, and cropped later. They accidentally drew on it when trying to manipulate the image.

      There are other good reasons, but if it was engagement bait, oh well…