• jabjoe@feddit.uk
    link
    fedilink
    English
    arrow-up
    0
    ·
    7 months ago

    There is nothing you can do in C++ or C, that can’t be done in the other. It’s the kind of the point of those languages.

    • refalo@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      7 months ago

      Technically you’re right, but I don’t think that changes what I said about optimization. There are still cases where equivalent C++ code can be faster than the C version merely due to different optimizations used.