• kekmacska@lemmy.zip
    link
    fedilink
    English
    arrow-up
    16
    ·
    16 hours ago

    the author of C++ said that C gives you many opportunities to shoot yourself in the leg. You have a much less chance for this to happen with C++, but when it does, you will blow your whole lower body off

    • Valmond@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      16 hours ago

      Yeah C++ is a bazooka, C is like the death of 1000 paper cuts.

      The paper cuts are all poisonous and kills you anyway.

      • kekmacska@lemmy.zip
        link
        fedilink
        English
        arrow-up
        3
        ·
        15 hours ago

        I haven’t used either, but compiled a lot of C source code and they compiled or could be adjusted easier even for someone who barely knows what printf, fopen, or #include are

        • Possibly linux@lemmy.zip
          link
          fedilink
          English
          arrow-up
          3
          ·
          12 hours ago

          The thing with C is that you probaby won’t know you messed it up. It happens silently as memory gets corrupted.

          Modern compilers are much more advanced but you still can overwrite stuff in memory with other stuff