this post was submitted on 09 Jun 2024
1 points (100.0% liked)

> Greentext

7540 readers
1 users here now

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 0 points 5 months ago (13 children)
[–] [email protected] 0 points 5 months ago (11 children)

Do you know why sharp is added to the end of programming languages? Like c sharp and f sharp?

Actually, I don't even know if it is pronounced c sharp or f sharp. I just assumed it was the same as music.

[–] [email protected] 0 points 5 months ago (3 children)

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.

[–] [email protected] 0 points 5 months ago

It's funny that in spanish only the "c" is translated.

We say "ce sharp"

[–] [email protected] 0 points 5 months ago (2 children)

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

[–] [email protected] 0 points 5 months ago (1 children)

++ 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.

[–] [email protected] 0 points 5 months ago

Oh, haha, got it. Thanks

[–] [email protected] 0 points 5 months ago (1 children)

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

[–] [email protected] 0 points 5 months ago
[–] [email protected] 0 points 5 months ago

Also because in music, C# is a half-note higher than C.

load more comments (7 replies)
load more comments (8 replies)