• 257m
        link
        fedilink
        arrow-up
        1
        arrow-down
        1
        ·
        edit-2
        10 months ago

        deleted by creator

        • sgh@lemmy.ml
          link
          fedilink
          arrow-up
          3
          ·
          edit-2
          10 months ago

          Standard C does not have typeof. That’s just a compiler extension…

          Also the equivalent of typeof is most likely decltype or auto.

    • FooBarrington@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      10 months ago

      Typescript! Though it’s less useful, since the Typescript types aren’t available at runtime, so you’ll just get object for non-primitive values.

    • LapidistCubed@lemmy.world
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      10 months ago

      Probably because Java and C# take much inspiration from C++. They aren’t called “C-based” languages for nothing 😉