• dank953@lemmy.world
    link
    fedilink
    arrow-up
    7
    arrow-down
    1
    ·
    7 months ago

    a sharp symbol is ++ stacked on top of ++ So C ++ ++ becomes C#

    Phonetically, It is C sharp because it sounds cooler than C hash or C pound.

    • Varyk
      link
      fedilink
      arrow-up
      3
      ·
      7 months ago

      Rad. Thanks! What do the pluses denote in a programming language? What’s the difference between c+, c++ and c sharp?

      • lili_thana@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        16
        ·
        7 months ago

        ++ is the increment operator in C, which increases a value by 1. C++ was intended to be an improvement on C, and so it’s saying that C++ is C incremented. C# is C++ ++ or C++ incremented. It’s just a bunch of programmer jokes. There isn’t a C+ afaik.

        • mozz@mbin.grits.dev
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          7 months ago

          “We did make C better, but what you’re getting back from us isn’t the better thing.”

          🙂

      • orivar@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        8
        ·
        7 months ago

        There is no c+. The reason is that ++ means “increment by 1” in c itself (and many other languages).