+ 3

What does this "#" in C?

What is the function of this "#"? In C#

24th Aug 2021, 2:47 PM
Aditya
Aditya - avatar
7 odpowiedzi
+ 6
If your question is about the name of the language, from Wikipedia: "The name "C sharp" was inspired by the musical notation whereby a sharp symbol indicates that the written note should be made a semitone higher in pitch. This is similar to the language name of C++, where "++" indicates that a variable should be incremented by 1 after being evaluated. The sharp symbol also resembles a ligature of four "+" symbols (in a two-by-two grid), further implying that the language is an increment of C++." https://en.m.wikipedia.org/wiki/C_Sharp_(programming_language)#Name P.S. I have seen and heard a lot of people refer to it as "C hashtag" or etc, if you are one of them, please just don't. Thanks.
24th Aug 2021, 3:13 PM
m.ali.a
m.ali.a - avatar
+ 5
Are you taking about C or C Sharp? C# stands for C Sharp and is a different programing language than C
24th Aug 2021, 2:50 PM
Brain & Bones
Brain & Bones - avatar
+ 4
Aditya In C, the hashtag symbol '#' tells you that a pre-processor directive is about to be defined. Pre-processor directives are run before compiling the code; it's like editing your source code with certain text substitutions and all.
24th Aug 2021, 2:56 PM
Calvin Thomas
Calvin Thomas - avatar
+ 3
Cat-licious Thanks i was searching this but can't find the correct explanation of this. Thankyou so much.
24th Aug 2021, 4:10 PM
Aditya
Aditya - avatar
+ 2
C# It's pronounced C sharp, although the simbol is indeed a nunber-sign (because of ascii) It's name was once COOL (C-like object oriented language), but I think it's still cool today Sharp in music means higher in pitch, suggesting that the language is an higher version of C Furthermore it can be seen as C++++, the meaning of which is trivial (Haters call it D flat)
24th Aug 2021, 3:24 PM
Angelo
Angelo - avatar
15th Nov 2021, 9:16 AM
Aniket Shaw
Aniket Shaw - avatar
+ 1
That means C sharp ..onother programming language developed by microsoft
24th Aug 2021, 5:20 PM
Victor mongare
Victor mongare - avatar