• مهما طال الليل
      link
      fedilink
      English
      10
      edit-2
      4 months ago

      That’s not 64 rocks

      Edit: In C any number that starts with 0 is implicitly interpreted as an octal.

      int i = 0100; // this is octal 100 i.e. 64
      

      I can tell from the upovotes vs. downvotes that I’m too old

      • @Dusktracer
        link
        English
        34 months ago

        00 = 0 01 = 1 10 = 2 11 = 3 100 = 4 …

        • مهما طال الليل
          link
          fedilink
          English
          3
          edit-2
          4 months ago

          In C any number that starts with 0 is implicitly interpreted as an octal

          int i = 0100; // this is octal 100 i.e. 64